The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.10
Apache version: Hosted server and I am not sure
PHP version (don't just say PHP 4, please): 4.4.8
Graphics Toolkit: ImageMagic
Operating system: Debian 4.0
Web browser/version (if applicable): FireFox 3 and IE 7
I have several Gallery 1.5.10 sites setup and all of them are allowing me to upload zip files except 1. I have no idea why this is the case and I can't find anything in the configuration of these sites that would cause it. I have checked permissions, utility locations and folder locations. I turned on debug and here is what I see when I try to upload a ZIP file.
util.php::183 -> Executing: '/usr/bin/zip' -j -o '/tmp/phpqTQhLh' -d '/home/74312/data/tmp/g1_tmp_isjyU0.dir'
Results:
none
Debug messages:
zip warning: /tmp/phpqTQhLh.zip not found or empty
zip error: Missing or empty zip file (/tmp/phpqTQhLh.zip)
Any help would be greatly appreciated. Thanks Barrett
Posts: 16504
Post a link to phpinfo under your gallery install for this problem site. This link explains how:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
It looks like this is an FAQ for Gallery 2 which I am not running. Does this phpinfo apply to Gallery 1.x installations as well?
Posts: 16504
Yes, that just has quick and easy instructions for creating a phpinfo file.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Ok thanks. I added the file and sent you a link to it. I haven't finished looking through it yet, hopefully this issue is something simple.
Posts: 16504
upload_max_filesize is set to 2M. If your zip file is larger than that you'll get this sort of error.
FAQ: Why can't I upload big files (over a megabyte or two)?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live hereFAQ: Why can't I upload big files (over a megabyte or two)?
Posts: 10
Yeah I noticed that and will have to ask my hosting site if they can increase this. However my zip file is only 1.48MB so this shouldn't be the issue. It seems from the debug error that I posted it isn't using my tmp location I specify in the config.php.
Debug messages:
zip warning: /tmp/phpqTQhLh.zip not found or empty
zip error: Missing or empty zip file (/tmp/phpqTQhLh.zip)
The tmp location I specified is; /home/74312/data/tmp
I have attempted to use /tmp which is set to 777 but that doesn't make a difference unfortunately.
Posts: 16504
With TCP overhead that size of file may actually be expanding larger than 2MB. Try a smaller zip and see if that works.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Apparently I can control this on my own site, I increased to 20MB, refreshed the phpinfo.php to verify that it saw the new setting and attempted the upload again. It still failed.
I will go ahead and try a smaller file just to be sure.
Posts: 10
Ok, just tried one that is under 1MB and it still failed. The good news is that it failed much faster
Posts: 16504
o.k. what is the permissions on the tmp directory you specified?
Do you have SSH access? If so, see if you can SFTP a zip file to your server and unzip it from the command line.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here