PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 1st, 2008, 09:22 PM   #1 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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.
attroll is offline   Reply With Quote
Old June 1st, 2008, 09:36 PM   #2 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
Join Date: Feb 2003
Posts: 364
I have tried uploading a file smaller the 1M and had not problem.
attroll is offline   Reply With Quote
Old June 1st, 2008, 09:41 PM   #3 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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.
attroll is offline   Reply With Quote
Old June 5th, 2008, 08:18 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Yeah most likely GD2 was choking on larger max sizes.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 5th, 2008, 12:14 PM   #5 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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.
attroll is offline   Reply With Quote
Old June 5th, 2008, 01:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 14th, 2008, 09:33 PM   #7 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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.
attroll is offline   Reply With Quote
Old June 16th, 2008, 07:43 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 16th, 2008, 11:13 AM   #9 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
Join Date: Feb 2003
Posts: 364
Quote:
Originally Posted by Chuck S View Post
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
attroll is offline   Reply With Quote
Old June 16th, 2008, 11:59 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 16th, 2008, 12:41 PM   #11 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
Join Date: Feb 2003
Posts: 364
Quote:
Originally Posted by Chuck S View Post
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?
attroll is offline   Reply With Quote
Old June 16th, 2008, 12:48 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 16th, 2008, 11:58 PM   #13 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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
attroll is offline   Reply With Quote
Old June 17th, 2008, 08:48 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 17th, 2008, 10:31 AM   #15 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
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
attroll is offline   Reply With Quote
Old June 17th, 2008, 11:28 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 17th, 2008, 11:34 AM   #17 (permalink)
Member
Verified Customer
 
attroll's Avatar
 
Join Date: Feb 2003
Posts: 364
Quote:
Originally Posted by Chuck S View Post
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.
attroll is offline   Reply With Quote
Old June 17th, 2008, 12:01 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error when I try to upload an image la_scrapbookeuse Photopost Pro How Do I...? 10 May 22nd, 2008 08:51 PM
Image upload problem - error creating thumbnail error code 127 bargaintrophies Photopost Pro How Do I...? 2 January 15th, 2008 07:33 AM
New image upload error v5.6.1 xowi Photopost Pro Installation & Upgrades 2 November 29th, 2006 10:25 AM
picture upload error / fatal error finn snor Photopost Pro Installation & Upgrades 18 August 14th, 2006 12:16 PM
Help with image upload error... jmack ReviewPost Installation & Upgrades 1 July 21st, 2004 02:42 AM


All times are GMT -5. The time now is 03:18 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0