coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: wellz24 on October 31, 2007, 05:24:39 PM

Title: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on October 31, 2007, 05:24:39 PM
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.

Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: François Keller on October 31, 2007, 06:09:01 PM
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
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Nibbler on October 31, 2007, 07:17:17 PM
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.
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: sL!z3r on October 31, 2007, 11:43:12 PM
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
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Joachim Müller on November 01, 2007, 10:26:19 AM
Trouble-shooting the upload process -> Fatal error: Allowed memory size of X bytes exhausted (http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690) and Documentation -> Uploading pics/files -> Error messages (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize).

Don't hijack threads, but start a thread of your own after having read the docs and after having searched the board.
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 01, 2007, 11:29:58 AM
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?
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Joachim Müller on November 01, 2007, 11:38:01 AM
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.
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 01, 2007, 12:00:58 PM
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... 

???
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Joachim Müller on November 01, 2007, 01:13:39 PM
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).
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 01, 2007, 05:10:39 PM
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
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Joachim Müller on November 02, 2007, 06:39:38 AM
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?
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 02, 2007, 05:21:41 PM
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...  :/
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: Joachim Müller on November 02, 2007, 06:55:11 PM
The thumbnail (http://www.somethingremembered.co.uk/albums/2007/2007%20-%20Maddie/thumb_IMG_1412.JPG) 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).
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 05, 2007, 05:49:20 PM
Screenshot of the thumbnails section as suggested... at least I hope it's the section you were after?

Thanks again.
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: wellz24 on November 05, 2007, 05:55:34 PM
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?
Title: Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
Post by: just_some_guy on November 05, 2007, 06:05:39 PM
Try setting the "Auto resize thumbnails that are larger than max width or height" to on - currently it is off.