Error uploading a ZIP file
wendtbd
Joined: 2004-04-13
Posts: 10 |
![]() |
The following information is required to get an answer: 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: zip error: Missing or empty zip file (/tmp/phpqTQhLh.zip) Any help would be greatly appreciated. Thanks Barrett |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Post a link to phpinfo under your gallery install for this problem site. This link explains how: |
|
wendtbd
Joined: 2004-04-13
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? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
wendtbd
Joined: 2004-04-13
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. |
|
nivekiam
![]()
Joined: 2002-12-10
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)? |
|
wendtbd
Joined: 2004-04-13
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: 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. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
wendtbd
Joined: 2004-04-13
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. |
|
wendtbd
Joined: 2004-04-13
Posts: 10 |
![]() |
Ok, just tried one that is under 1MB and it still failed. The good news is that it failed much faster |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |