 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
October 14th, 2009, 02:19 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
| Fatal Error during Zip of Favorites
Very strange and I can't seem to recreate the issue, but I am getting complaints that users are receiving the following error when they are clicking on the little floppy disk to download the zip of there favorites. Code: Content visible to verified customers only.
In researching the forum the Fatal error seem to be related to GD2 and uploading photos but this is downloading the zip file and I have ImageMagik selected as my primary photo tool.
Any idea's?
|
| |
October 14th, 2009, 02:23 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Well the issue is going to be the same as GD2 because the zip function is also a PHP function and its limitations are limited to the amount of memory PHP has setup.
You can raise the memory to say 60M based on the discussions you have seen about adding the ini_set line and see if that solves your issues. If users are zipping a large amount of images I can definately see this as an issue.
|
| |
October 14th, 2009, 02:38 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
Thanks for the quick response.
I added the following in pp-inc.php right after the line at the beginning of the file error_reporting Quote:
ini_set("memory_limit", "70M");
ini_set("max_execution_time", 0);
| But it doesn't seem to fix the issue. Did I make the change in the wrong file?
|
| |
October 14th, 2009, 03:20 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well what is the error they get? if applied then the error would change
|
| |
October 14th, 2009, 03:28 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
One user tried again getting the same error. He removed all photos but one and got the same error message trying to generate the zip.
|
| |
October 14th, 2009, 03:33 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Well if the error is the same try placing that ini_set line in pclzip.php after this Code: Content visible to verified customers only.
Otherwise try seeing if you can alter the php.ini file on the server if you have permissions and upping the php memory
|
| |
October 14th, 2009, 03:54 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
I went ahead and changed the php.ini as it was set at 32M Code: Content visible to verified customers only.
I also went ahead and added the following to pclzip.lib.php Code: Content visible to verified customers only.
Now requesting the users do a test... will let you know.
|
| |
October 14th, 2009, 07:15 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
Same error message Code: Content visible to verified customers only.
|
| |
October 14th, 2009, 08:26 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well that does not seem quite possible there.
Did you restart your server after changing the php settings globally? That error still tells me PHP is set to 32mb
|
| |
October 14th, 2009, 08:43 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
I totally agree with you that it appears that everything is still set at 32M. I utilize hostmonster and don't think the will reboot the server just for me but I believe they do it every night as part of a maintenance. Hopefully it will work tomorrow.
|
| |
October 14th, 2009, 08:48 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay yeah you can look at phpinfo in admin what does it say for memory limit?
|
| |
October 14th, 2009, 09:06 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
memory_limit 70M 70M
|
| |
October 14th, 2009, 09:20 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay well thats for photopost
The plczip file which is self containded would follow the servers php limit possibly
Do you have a phpinfo.php file located in your webroot? what does the memory limit say.
|
| |
October 17th, 2009, 08:45 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
|
here is the error message when I left click on disk: Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 22670055 bytes) in /home/mywisegu/public_html/mywiseguys/gallery/misc.php on line 603
|
| |
October 17th, 2009, 03:40 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay well I cant give you anything more to assist there than raising PHP memory possibly your files sizes or amount of files are too much to zip without crashing PHP.
|
| |
October 17th, 2009, 09:01 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: May 2009
Posts: 73
| Quote:
Originally Posted by Chuck S Okay well I cant give you anything more to assist there than raising PHP memory possibly your files sizes or amount of files are too much to zip without crashing PHP. | This is the reason that I suggest a download button (controlled by rights) seeing how the My Favorites download doesn't work all that great. For me its a setup for failure. My site now is unprofessional with error messages that I can not answer. My only choice is to
a. change the hundreds of photos to a lesser size so they can be downloaded through my favorites (which may still not work especially seeing how there is no limit on size or quantity of photos in My Favorites)
b. seek a different photo solution which kinda stinks since I have invested so much time, energy and money into this solution which I did believe in but the last response "well I can't give you anything more to assist..." is tell me that I am plain out of luck using your product in the manner it was designed.
I'm bummed and now have to put my faith in vBulletin 4 has a better built in photo album
|
| |
October 17th, 2009, 09:33 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Well see if you dont limit filesizes or anything and allow large uploads these types of things can occur.
If someone is for example trying to zip like 24 1mb files then maybe this happens whereas if they are zipping 24 250k files it would not.
It is also different server to server how things are handled.
vbulletin 4 has a very basic profile album feature from what I here same as vb 3
They are not releasing a photo gallery and as such I do not beleive any zip and download functionality.
Ultimately I think the best solution going forward if you do not limit sizes is to limit sizes or at the very least limit the max dimensions to maybe 1024 by 768 so all photos are truly processed by the image processor not just big files being dumped on to the server.
Example being on my site a 2.33mb file processed with those dimension restrictions is resized down to 781kb so smaller files will be smaller like I have had 1mb files sized down to 140K using 70quality which is the default. My example of the 2.33 file is with 100 quality. at 70quality it is 133kb
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:09 AM. | |