![]() |
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. |
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"); |
Thanks. Now, getting error if user tries to upload buld uploads or 5 allowed uploads. |
Okay same error? How does a user have bulkupload capability? |
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 |
Okay same thing you did in uploadphoto.php do to bulkupload.php |
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:
|
Okay is your uploads directory clogged with images not processed? |
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:
|
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) |
Many thanks Chuck. I have passed your message on to the hosting company. I have often thought that Imagemagick should be installed. |
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 |
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 |
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? |
Found the solution by searching through related posts. I deleted +profile \"*\" from image-inc.php and it worked |
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:
-- 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:
|
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 |
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 |
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