Page 1 of 1

Error adding media

Posted: Fri Apr 17, 2009 5:12 pm
by derekjd
I've been working on getting my site going and just encountered an error today while up loading a photo through the media manager:

Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 14592 bytes) in /home/content/d/e/r/derekjd/html/degeneratex/include/functions_images.inc.php on line 1244

the photo size is: 416KB

the photo was still uploaded yet the error appeared and I had to manually go back the to the administration section.

I called godaddy to see if this actually a issue on their end, but I figured I would post it here to see anyone has seen this issue.

Thanks,
Derek

degeneratex.com

Re: Error adding media

Posted: Fri Apr 17, 2009 6:23 pm
by derekjd
got the answer to the issue, need to adjust the php5.ini

Re: Error adding media

Posted: Mon Apr 20, 2009 3:57 pm
by judebert
Glad you fixed it. In case someone else is interested: the error actually occurred while Serendipity tried to make a thumbnail for the uploaded image. At 416K compressed, the image could actually be several megabytes uncompressed. It needs to be uncompressed to make the thumbnail.

Increasing the memory_limit in the php.ini will allow enough space to uncompress the image and make a thumbnail for it.