Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal error: Allowed memory size of XXXXXXX bytes exhausted  (Read 8615 times)

0 Members and 1 Guest are viewing this topic.

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« 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.

Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #1 on: October 31, 2007, 06:09:01 pm »

Quote
Somebody 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
Logged
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

  • Guest
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #2 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.
Logged

sL!z3r

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #4 on: November 01, 2007, 10:26:19 am »

Trouble-shooting the upload process -> Fatal error: Allowed memory size of X bytes exhausted and Documentation -> Uploading pics/files -> Error messages.

Don't hijack threads, but start a thread of your own after having read the docs and after having searched the board.
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #5 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #6 on: November 01, 2007, 11:38:01 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.
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #7 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... 

 ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #8 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).
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #9 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #10 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?
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #11 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...  :/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #12 on: November 02, 2007, 06:55:11 pm »

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).
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #13 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.
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #14 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?
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Fatal error: Allowed memory size of XXXXXXX bytes exhausted
« Reply #15 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.