View Full Version : Zip upload problem
October 19th, 2011, 11:10 AM
I have done several test to know how the zip upload works, but always I have two diferent problems. These are the tests I've done:
Zip file size Number of pictures Error message
0,98 megas 16 The page uploads and unzips correctly the images, but in the next step (process the images), the page shown a 500 Internal Server Error. The images are in the images queue, and every time I tried to process them, I have the same error. Finally, I have to delete them through FTP.
1,91 megas 32 The page uploads and unzips correctly the images, but in the next step (process the images), the page shown a 500 Internal Server Error. The images are in the images queue, and every time I tried to process them, I have the same error. Finally, I have to delete them through FTP.
4,79 megas 80 The page uploads and unzips correctly the images, but in the next step (process the images), the page shown a 500 Internal Server Error. The images are in the images queue, and every time I tried to process them, I have the same error. Finally, I have to delete them through FTP.
10,50 megas 176 A white page, only with the next message: "The file(s) uploaded were too large to process.".
15,30 megas 256 A white page, only with the next message: "The file(s) uploaded were too large to process.".
I have changed the values of upload_max_filesize and max_execution_time in php.ini, but the error persists. And the value for "Maximum multimedia upload size in Kb" is 65536000. To add more mystery, some users can upload the 0.98 megas zip file without problems, but others have the 500 error. All users see the other error with the 10 and 15 megas files. And the permissions in the categories sections are correct.
Any idea about what can I do to upload zip files? Is the Photopost configuration? Is the php.ini file? Is the dedicated server configuration?
October 19th, 2011, 01:42 PM
Are you using GD2 to process images which is prone to memory timeouts?
October 19th, 2011, 05:20 PM
Yes, I'm using GD2 (always, since I use Photopost). Do you recomend I install and use ImageMagick?
October 19th, 2011, 07:05 PM
Yes if you are processing large amounts of large files without a doubt that is best.
When using GD2 you can increase PHP memory to 72M and in upload options set your max image sizes to no more than 1024 or 1500 and see if that helps. There are alot of topics on this if you search for "ini_set"
Using Imagemagick though is recommended since it would not be prone to PHP memory issues like GD2.
October 20th, 2011, 07:50 AM
OK. I have installed ImageMagick, but there are no difference between IM and GD2. The errors messages are the same, both the 500 error as the "file to large".
I have changed the max image size value in upload options, and have tested several values with "ini_set", in bulkupload.php, but nothing solve the problem. Maybe I have to edit another file? Have you got another idea?
October 20th, 2011, 09:50 AM
Do you have a link to your site and a test login to try a zip upload? You did change your image processor to Imagemagick in global options and set the proper path to mogrify on the server in config settings in admin? Also a link to the php info on the server would help as well because you will only be allowed to upload files up to the max your server allows no setting you make in admin is going to change that.
October 20th, 2011, 02:08 PM
Yes, I changed the image processor to ImageMagick in the global options and I have set the path to mogrify in the config settings (I wrote in console "which mogrify" to know the correct path).
But I have the original problems. And some new, because the new upload images aren't resized, despite the config of the images size is without changes. I don't understand.
An user to test? Of course! The gallery is www.forocompeticion.com/galeria/ and you can test with the user Gortest and the pass 123456. And the php info is in the root (www.forocompeticion.com/info.php).
If you need something more, tell me!!!
October 20th, 2011, 06:12 PM
Imagemagick does not work for you because you have disabled exec in your php setup ;)
October 20th, 2011, 06:32 PM
And I have to enable exec in php.ini, haven't I? How can I do that? I have searched for "exec" in php.ini, but I'm not sure about what is what I have to change.
October 20th, 2011, 07:00 PM
check the disabled functions in php
as I said you have disabled exec and that is needed for imagemagick to run.
October 20th, 2011, 08:30 PM
OK, I did what you said me about exec and I think all the config is correctly. Now the new images are resized. Thanks!!!
But the original problem I posted in the first message about upload zip files still continues (error 500 and "The file(s) uploaded were too large to process.").
October 20th, 2011, 08:52 PM
Your setting your maximum filesize to 1024kb
I do not really read your sites language so hard to say but I uploaded a 6mb zip file no problems
The message your telling me is because your setting your max filesize to 1024kb which is 1mb and your trying to upload a file larger than 1mb
October 20th, 2011, 10:16 PM
Mmm... I found the problem about the file size. In php.ini I put a value of 128 for upload_max_filesize. But post_max_size had a value of 2, so this was the limit. As soon as I change this limit, the error of "The file(s) uploaded were too large to process." disappears.
I just uploaded a zip file of 15,6 megas with 256 images, and it works!!! Now, the second part of this history. After upload and unzip the images, the error 500 appears. The images are in the queue list, at uploadphoto.php (256, 16, 100... it doesn't matter the number). If I try to process the images in uploadphoto.php, as soon as bulkupload.php is load, errror 500 again.
I searched in photopost.com about that error, but none of the solutions work for me. I tried to add to bulkupload.php this:
And I change the value for memory_limit, but it doesn't work. Any idea?
October 21st, 2011, 08:44 AM
The restrictions come from the server as you see.
I just uploaded a 13.1mb zip file with 6 2.2mb images and they processed fine.
Gortest Galería - Galería (http://www.forocompeticion.com/galeria/u4025-gortest.html)
I am not seeing any errors.
October 27th, 2011, 09:24 PM
OK, several problems have been solved. Thank you Chuck!!! Now I can upload a zip file without the previous errors.
But... after upload and unzip a zip file, after the page shows all is correct... simply, there are no images. I have tested with several zip files and diferents sizes, but nothing. There are no signal of the zip file, or images, or errors... nothing. I'm going crazy because I think all settings (for PhotoPost and php.ini) are fine. But it is clear that something is wrong.
If you think is necesary I can send an email to you with the info you need to solve this.
October 27th, 2011, 09:59 PM
well are you sure your zip file was valid I mean I did upload several zip files without any issues of different sizes.
October 27th, 2011, 10:32 PM
That's that I don't understand.
Other users and I have tried to upload a zip file, and all of them have the same problem: there are no error in the uploading, the page shows the correct messages but there are no images. The last test was with a zip file with only one image (1,44 KB).
October 28th, 2011, 08:00 AM
You do realize you can not upload a 65mb file to your server right?
Now I try to upload a 13.1mb file this is what I see
photos.zip: El archivo subido no se encontró
La razón típica es que el archivo excedió los límites permitidos.
October 28th, 2011, 09:01 AM
We tried upload several files and no one have success.
Until now, we uploaded a 65 megas file, with the errors of my first post. But now, the error is that the file is not found or simply, there are no images after upload. To avoid the first error (file is not found), we have to check the box "Skip upload and process the files already in your upload directory" (by the by, how can I have this box checked by default?).
But despite of have checked that box we have the other error (no images).
I have reviewed all the Photopost config and also the php.ini file. I'm absolutely lost, I don't know where is the problem or why.
October 28th, 2011, 09:47 AM
I do not see your php setup but if the file is being dropped before our program can process anything then the file you are uploading is larger than the max allowed php file upload size.
You would need to alter your server's php setup to allow such things. I know of no one who allows 65 mb uploads as thats out of the range of what servers allow usually.
October 28th, 2011, 10:14 AM
Allow 65 mbs has been for testing purpose, because we will need upload a lot of images. But I supose it'll be better upload several smaller files, instead one bigger.
About php.ini, this is the values I have about upload files (for testing):
upload_max_filesize - 128M
max_input_time - 300
memory_limit - 2048M
max_execution_time - 30000
post_max_size - 128M
Yes, I know these values are not usually, but I was searching the appropriate settings (I hope). With these values is supposed I'm able to upload a file of 60 megs, right?
October 28th, 2011, 10:19 AM
well your server apache may limit things I suppose as well as PHP I am not a web host but like I said your definately limiting size somehow. what does the message say I posted in my last post? I do not read your language I do understand enough to know it says your over a set limit.
what are your filesize and diskspace limits in usergroup permissions?
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.