Fatal error: Allowed memory size of XXXXXXX bytes exhausted Fatal error: Allowed memory size of XXXXXXX bytes exhausted
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal error: Allowed memory size of XXXXXXX bytes exhausted

Started by wellz24, October 31, 2007, 05:24:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wellz24

I am receiving the following error message when trying to upload files:

"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2400 bytes) in /home/someth/public_html/include/picmgmt.inc.php on line 272"


I have read the sticky thread "Trouble-shooting the upload process > Fatal error: Allowed memory size of X bytes exhausted".  And contacted my administrator and he tells me that the server is currently set to 32MB of memory allocation.  The largest photo I'm trying to upload is 4.1mb, so i'm guessing it's not that!?!

Somebody has just upgraded to v1.4 for me, could it have anything to do with that??

Thanks in advance.


François Keller

QuoteSomebody has just upgraded to v1.4 for me, could it have anything to do with that??
not at all, but curent version is 1.4.13
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Nibbler

You can't compare the sizes like that. Resize your files yourself prior to upload or switch to Imagemagick in config if available. If you can post a link to the image I can let you know how much memory it actually requires.

sL!z3r

Hi, I've got the same problem...

what's now exactly the problem??  the server wants to resize/change filesize but hasn't got enough memorysize?

is it a way to turn off resizing images?

greets,
sL!z3r

Joachim Müller


wellz24

Nibbler they are around 2100px x 2800px (RGB).  I've worked out they need 16.8MB of memory allocation.  Now if what the server admin tells me that there is 32Mb is true, surely there shouldn't be a problem?

I've uploaded files this size, if not larger in the past and thee hasn't been a problem...

Any suggestions?

Joachim Müller

Quote from: GauGau on November 25, 2005, 10:43:48 AM
To calculate the amount of memory an image uses, you simply multiply the pixel width and height, and then you multiply the result by the number of base colors (RGB - 3, CMYK - 4). Finally, you divide by 1048576 to get the memory usage in MB.
2100 x 2800 x 3 / 1048576 = 16.822, which is more than 16 MB total memory allocation. You'll need some overhead for PHP and the vars and arrays as well. This being said: either increase the memory allocation or use smaller files in terms of resolution.

wellz24

Ok thanks, but the admin tells me the allocation is 32Mb not 16.

I guess I'll just set up some actions in photoshop to reduce res.  Just confused why its not letting me now where it has done in the past... 

???

Joachim Müller

To find out about the actual amount of allocated RAM, visit your phpinfo page. I can strongly suggest looking at the batch-resize tutorial (link to tutorial section at the top of this screen).

wellz24

Thanks, but I'm working on a mac.

hmmm, somethings not right.  I've down res'ed them all and uploaded them ok but now the thumbnails on my homepage are huge.

http://www.somethingremembered.co.uk

Am I ok posting about this here I do I need to start a new thread?  :s

Joachim Müller

You require a login to see the thumbnails, so please provide a non-admin test user account. Your question should have gone into a separate thread, but now please continue in this one, as it is already cluttered. Did you create the thumbnails on your client then and FTP-uploaded them to your server?

wellz24

Sorry, I'm a bit new to this forum malarkey.

login - test
pw - test

I uploaded the pics via ftp and then batch added them via the site as I've always done.  The thumbnails are created automatically. 

Excuse my ignorance as to how the thumbnails are created...  :/

Joachim Müller

The thumbnail of the page http://www.somethingremembered.co.uk/displayimage.php?pos=-8182 has the dimension of 1108x831 pixels. Review you pixelsize settings in coppermine's config and post a screenshot of the corresponding section (using "additional options" when composing your message). Go to admin tools and perform an "Update thumbs and/or resized photos" -> "Only thumbnails" for the album "2007 > Maddie" (144).

wellz24

Screenshot of the thumbnails section as suggested... at least I hope it's the section you were after?

Thanks again.

wellz24

Updating thumbnails and/or resized images, please wait...
albums/2007/2007 - Maddie/thumb_IMG_1431.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1430.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1415.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1416.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1414.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1412.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1409.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1408.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1407.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1406.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1405.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1404.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1403.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1402.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1401.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1400.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1397.JPG updated succesfully !
albums/2007/2007 - Maddie/thumb_IMG_1396.JPG updated succesfully !

It didn't seem to work... thumnails are still large.  Any other ideas?

just_some_guy

Try setting the "Auto resize thumbnails that are larger than max width or height" to on - currently it is off.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums