PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Fatal error: Allowed memory size "exhausted" (http://www.photopost.com/forum/photopost-pro-installation-upgrades/114889-fatal-error-allowed-memory-size-exhausted.html)

DefenceTalk.com July 15th, 2005 10:36 PM

Fatal error: Allowed memory size "exhausted"
 
Uploading image and got this error:

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 8000 bytes) in /home/defence/public_html/pictures/image-inc.php on line 115

:eek: :(

Running the latest version5.13 of pp.

Chuck S July 15th, 2005 10:38 PM

Okay your php memory is exhausted.

You can try in uploadphoto.php right under the line

require "pp-inc.php";

add

ini_set("memory_limit", "40M");

DefenceTalk.com July 16th, 2005 09:17 PM

Thanks.

Now, getting error if user tries to upload buld uploads or 5 allowed uploads.

Chuck S July 16th, 2005 10:14 PM

Okay same error?

How does a user have bulkupload capability?

DefenceTalk.com July 16th, 2005 11:35 PM

well, if its more than one pic then it gets to the page where you can set title and description of the image (Add Photos - Select Photos / Configure Properties ) but then gives this error:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 8000 bytes) in /home/defence/public_html/pictures/image-inc.php on line 115

Chuck S July 17th, 2005 09:33 AM

Okay same thing you did in uploadphoto.php do to bulkupload.php

Swanny July 12th, 2006 10:19 PM

This is happening to me in 5.31. It just happens to me (admin). It doesn't happen to any regular users. It just started happening a few weeks ago.

I added the ini_set line in uploadphoto.php and I still get the error:
Quote:

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20000 bytes) in /home/fusion/public_html/photos/image-inc.php on line 99

Chuck S July 13th, 2006 07:30 AM

Okay is your uploads directory clogged with images not processed?

Frank Woolf March 4th, 2007 03:09 AM

I have been experiencing the same problem and it started when my hosting company recently installed bug fixes to PHP 5.2.1. The first obvious problem was that most pages of all sites using PHP would not load. then later I discovered nobody could upload pictures of more than a few KB in ppClassifieds or Photopost. I have copied part of the hosting company's last reply below:

This is nowhere near a good enough solution as people have got used to uploading up to six images as big as 2mb each. I will need to make some drastic changes to what users are allowed to upload.

If anyone has a better solution I would love to know about it.

Quote:

I was able to upload some decent sized images after setting the server limits to 32Mb. I had some trouble with the 650Kb image but then I cleared out their 'uploads' folder of the unprocessed stuff (as suggested by the photopost developers) and then it went through just fine. I think that this software isn't making smart use of the conversion and that's why it's wanting to allocate 90Mb just for some larger images. I'm sorry but we just aren't willing to increase the memory limits any higher than 32Mb as this is a shared hosting environment.

The reason that this would have started happening after February 21st is because of the bug fixes to PHP 5.2.1 where it actually *started* enforcing the memory limits that were in the server config. What may seem like a bug at the server level now is actually a bug fix, and is in fact the software beginning to work properly.

Chuck S March 4th, 2007 10:51 AM

Your recourse would be to have your company tell you or install Imagemagick for you. We have no control over GD2 which is part of PHP or how much memory it requires to process images. Thats a server issue with GD2 and PHP so all we can suggest for those using GD2 is to increase PHP memory or switch to Imagemagick(mogrify)

Frank Woolf March 4th, 2007 05:41 PM

Many thanks Chuck.

I have passed your message on to the hosting company. I have often thought that Imagemagick should be installed.

Chuck S March 4th, 2007 06:20 PM

Yeah it is GD2 using up the PHP memory since it is part of PHP so not much you can do other than restrict filesizes if they wont change anything or get them to install Imagemagick or move to a host that has imagemagick

Frank Woolf March 4th, 2007 11:42 PM

According to my hosting company Imagemagick is installed. They told me to change the path to mogrify from "/usr/bin/X11/mogrify" to "/usr/bin/mogrify"

I tried that and still get the same error message.

Is there somewhere in Photopost where I should change GD to Imagemagick? I can't find anything other than the path in the control panel or config.inc

Frank Woolf March 5th, 2007 12:20 AM

Sorry Chuck I found the GD/Imagemagick selection in the control panel. I am too tired to see straight.

I changed to Imagemagick and tried uploading. I got the following error:

Error creating thumbnail! Error code: 1

Command:

"/usr/bin/mogrify" +profile "*" -size 150x100 -quality 60 -geometry 150x100 -unsharp 10 '/home/carsales/public_html/photopost/data/500/thumbs/100_0905.JPG'

Can you advise please?

Frank Woolf March 5th, 2007 02:18 AM

Found the solution by searching through related posts. I deleted +profile \"*\" from image-inc.php and it worked

Quarterbore August 31st, 2008 09:29 AM

I have been fighting with this memory issue for a while as well. I am curious about the question about the "uploads" folder above and should I delete the images in there to try to resolve this?

Also, do I understand correctly that moving to Imagemagic will help resolve this issue?

I have somewhere around 7,000 members and to my knowledge I have five members that get this error but they get the error every time they try to upload an image.

Nobody else sees it so I am stumped.

-- EDIT 1 ------------

Edit - I have decided to switch my Photpost to use ImageMagick (I do have it on my server) and I changed the setting in:

adm-misc.php >> Photopost options

When I try to upload an image I get this error:
Quote:

Error creating thumbnail! Error code: 127

Command:

"" +profile "*" -size 150x143 -quality 70 -geometry 150x143 -unsharp 10 '/home/quarterb/public_html/photopost/data/500/thumbs/homersbrain300.jpg'
What am I missing?


-- EDIT 2 -----------

*** Things I have tried:
In Config - Tried adding Imagemagick path in setting for Path for MOGRIFY executable (/usr/bin) and that did not help. (Should that have a value?)

---- EDIT 3 - LAST EDIT --------

OK, I found the following thread:

http://www.photopost.com/forum/photo...ease-help.html

In there was this tidbit:

Quote:

So I researched here and found my Path for MOGRIFY executable it is set to

/usr/bin/mogrify
When I added this to my Config the new error went away. I am waiting for my few members that could not upload to advise if moving to ImageMagick solves the error they had in the first place.

Chuck S August 31st, 2008 10:45 AM

You can delete the numeric directories under uploads folder yes

Your other errors where just because you did not have the proper path to imagemagick in the config.

you can also bump up memory for php like so

http://www.photopost.com/forum/1219346-post2.html

stmpspaz June 25th, 2009 04:31 PM

fatal error: allowed memory size
 
I have read the posts here - but since they are about a year old I just wanted to verify that it is safe to delete all the numbered directories in the uploads directory. (including the 0 directory)

We are using version 6.23

Chuck S June 25th, 2009 06:19 PM

Yes it is safe to delete anything under the uploads directory. Processed images are under data so thats what you dont want to delete. ;)


All times are GMT -5. The time now is 05:07 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97