 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
June 1st, 2008, 09:22 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
| Fatal error when I try to upload an image
Here is the situaton.
When I try to uplaod a photo that is 2.5 megs. I get the following error. Quote: |
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 10000 bytes) in /home/apages/public_html/gallery/image-inc.php on line 139
| I am using GD2.
Here are the things I have tried:
Usergroup is set to upload size set to 0 for unlimited
My memory_limit is set to 50M
Cleared all my upload directories of all numeric directories
After all that I still get the same error.
|
| |
June 1st, 2008, 09:36 PM
|
#2 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
I have tried uploading a file smaller the 1M and had not problem.
|
| |
June 1st, 2008, 09:41 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
I got this figured out I have to change my Max allowable image width in pixels and my Max allowable image height in pixels.
Once I did this it worked.
|
| |
June 5th, 2008, 08:18 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Yeah most likely GD2 was choking on larger max sizes.
|
| |
June 5th, 2008, 12:14 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
Yes that was what was doing it pretty much. Heck between GD2 and Imagemajick. One works good for one thing and the other does not. Its a half dozen or one or a half dozen of the other.
|
| |
June 5th, 2008, 01:42 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
They both have their pros and cons I am sure. GD2 has more cons though.
|
| |
June 14th, 2008, 09:33 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
OK, here we go again. I am trying to rotate the image in edit mode and I am getting this error: Quote: |
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 2448 bytes) in /home/apages/public_html/gallery/adm-photo.php on line 66
| The image is 2448x3264 and I have it set to max allowable image at 3300x3300, so that should not be the problem. The photo uploaded but I can not flip it in edit more otherwise I get the error above.
|
| |
June 16th, 2008, 07:43 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Thats still a memory exhaustion error with GD2.
Resizing photos smaller would help that or using the ini_set line in pp-inc.php as noted in many threads here to raise php memory up some might help. Upload and then things go blank |
| |
June 16th, 2008, 11:13 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
| Quote:
Originally Posted by Chuck S Thats still a memory exhaustion error with GD2.
Resizing photos smaller would help that or using the ini_set line in pp-inc.php as noted in many threads here to raise php memory up some might help. Upload and then things go blank | I tried adding the following to my pp-inc.php file and I get the same error but referring to a different line now. Quote:
ini_set("memory_limit", "70M");
ini_set("max_execution_time", 0);
| Quote: |
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 2448 bytes) in /home/apages/public_html/gallery/adm-photo.php on line 99
| |
| |
June 16th, 2008, 11:59 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Attroll
Please email support at photopost dot com with a url and admin login and ftp if you will.
Your error is telling me your memory is still set to 50M or so and I will check to see what your setup. You can check your PHP memory also in PHPINFO in Admin but it looks like its not reading the ini_set line.
|
| |
June 16th, 2008, 12:41 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
| Quote:
Originally Posted by Chuck S Attroll
Please email support at photopost dot com with a url and admin login and ftp if you will.
Your error is telling me your memory is still set to 50M or so and I will check to see what your setup. You can check your PHP memory also in PHPINFO in Admin but it looks like its not reading the ini_set line. | My memory limit is set to 50M in php in my memory_limit. What do you recomend that I set it to?
|
| |
June 16th, 2008, 12:48 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Well what is interesting is you state the ini_set line is applied in pp-inc.php which means php memory should be overridden to 70M for Photopost but it is not. Now if you have total control over your server in your php-ini file on the server for php try changing the memory_limit to 70M and reboot the server make sure it has changed in phpinfo and then try the action that is giving you trouble. If you are having issues with GD2 and have SSH access to the server you may elect to compile Imagemagick and use that since you would not be prone to memory issues using Imagemagick. PhotoPost PHP Photo Sharing Photo Gallery ImageMagick Installation Guide |
| |
June 16th, 2008, 11:58 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
No luck. I raised my php memory_limit to 70M and reboot the server and I am still getting the same error. Quote: |
Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 2448 bytes) in /home/apages/public_html/gallery/adm-photo.php on line 99
| |
| |
June 17th, 2008, 08:48 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Okay couple things.
1. Clear your uploads directory of all directories.
2. If your editing a photo and trying to replace it your getting the same error as when trying to upload a new one your php is dieing. Try in Admin => Upload Options lower your max image height and width to say more manageable numbers for GD2 like maybe 1024 not 2500.
Now if you continue to have issues with GD2 my ultimate suggestion since you have control of the server is to install and use Imagemagick.
|
| |
June 17th, 2008, 10:31 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
|
I am not having problems uploading or replacing the photo when I edit it. This is only giving me a problem when I am trying to Rotate or Flip in the edit mode. I went into my settings and changed my max image height and width to 2500 and 2500 and that did the job. I would like to have kept them closer to the original size though.
If I switch to Imagemagick then I get this error. Quote: |
/usr/bin/X11/mogrify -rotate 270 /home/mysite/public_html/gallery/data/549/IMG_1094.jpg
| |
| |
June 17th, 2008, 11:28 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
What is the full error with error code for Imagemagick
Glad downsizing the picture got GD2 to work.
|
| |
June 17th, 2008, 11:34 AM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Feb 2003
Posts: 364
| Quote:
Originally Posted by Chuck S What is the full error with error code for Imagemagick
Glad downsizing the picture got GD2 to work. | That is the error code that shows up on the screen in Imagemagick when I was using the other max image height and width. How would I find out the full error code.
|
| |
June 17th, 2008, 12:01 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,703
|
Interesting no real answer for that. Usually there is a main error like ERROR CODE: 127 or ERROR CODE: 1 etc that is above the actual error noted above.
At any rate I would suspect the rotate function has issues processing images over certain dimensions.
|
| | |
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 03:18 PM. | |