Loading...
 
Architecture / Installation

Architecture / Installation


Problem with file uploads in File Gallery

posts: 2

I have installed TikiWiki 1.7.1.1 under Redhat 9 2.4.20-20.9, with PHP 4.2.2 under Apache 2.0.47.

I compiled everything from sources, got everything up and running properly, but one problem I can't seem to fix is uploading files in the File Gallery.

It seems i consistently fail to upload files greater than ~1.5 megs.

TikiWiki seems to just spit back the same output from;

http://localhost/tiki/tiki-upload_file.php

... as if it's waiting for me to upload a file. The form just seems to reset after uploading a file > 1.5 megs, and it does not appear in the file galleries.

I've tried both methods, of storing files on disk, and saving files in the database, and either way, the uploads do not work.

I've done the obvious of checking PHP settings for post size and file upload size (set them both to 10000M for testing...) to no avail.

Any suggestions ?

Thanks,

-Xian

posts: 224 Ireland

10000M is a bit too much (that's 10 GB!) and PHP may choke on it. Have you checked that your upload_max_filesize is actually bigger than 1.5M when running phpinfo?

Regards,

Pat.


posts: 2

Oops ! Turns out I had two versions of PHP installed on my box, and I was editing the wrong php.ini file =)

I found the right one, and now uploads are working properly =)

Now if I can only figure out these default permissions to get around that "Permission Denied" stuff for anonymous users...

Cheers,

-Xian


posts: 224 Ireland

Xian,

You are probably seeing 'permission denied' at login time because your home page is set to one of the Tiki sections, e.g. the wiki. You anonymous user group requires at least view access to this Tiki section in order to avoid the error message. Both the home page and permissions can be configured in the Admin panel.

Regards,

Pat.


posts: 8
I'm having a similar problem, I'm set to 100M in php.ini, when I upload, the upload appears to work, then I get a blank screen and it says done at the bottom left. I'm trying to upload a 55M file... Any suggestions would be appreciated...

posts: 8 United States

Hi,

> wilodom:
> I'm having a similar problem, I'm set to 100M in php.ini, when I upload, the upload appears to work, then I get a blank screen and it says done at the bottom left. I'm trying to upload a 55M file... Any suggestions would be appreciated...

I am having a same but intermittent problem, but my file size is no where near the limit, I can upload maybe 2 images, but then I would have the blank screen, my file got in to the /tmp, apache would log an segfault.

Anyone who has an extensive gallery uploaded successfully, would he upload an phpinfo output for us? or php.ini? thanks.


posts: 2

Hi Guys and Gals if any...

I have the same problem...

I have set the properties in my mysql file in all three places my.cfg (if you type its will tell you the files. Its is set to 16M

I have also set the same prop in my php file.

I have files inder 500K uploaded in the database and I also tested the same 500K file with a directory and it works but when i try anything bigger it fails.

This is true for games, images, and files.

Please Help

Danke

elajoie


posts: 2

Also here is my interesting php -v output

php -v
Content-type: text/html

PHP Warning: Unable to load dynamic library '/usr/lib/php4/odbc.so' - /usr/lib/php4/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unable to load dynamic library '/usr/lib/php4/pgsql.so' - /usr/lib/php4/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unable to load dynamic library '/usr/lib/php4/snmp.so' - /usr/lib/php4/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unable to load dynamic library '/usr/lib/php4/dbg.so' - /usr/lib/php4/dbg.so: cannot open shared object file: No such file or directory in Unknown on line 0
4.2.2


posts: 3

Hi, I had the same problem and I could resolve it changing the parameter memory_limit to the same value of upload_max_filesize and_post_max_size in php.ini.