Error adding media

Found a bug? Tell us!!
Post Reply
derekjd
Regular
Posts: 14
Joined: Thu Feb 26, 2009 1:21 am

Error adding media

Post 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
Attachments
screen shot of error
screen shot of error
error.jpeg (25.01 KiB) Viewed 2145 times
derekjd
Regular
Posts: 14
Joined: Thu Feb 26, 2009 1:21 am

Re: Error adding media

Post by derekjd »

got the answer to the issue, need to adjust the php5.ini
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Error adding media

Post 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.
Judebert
---
Website | Wishlist | PayPal
Post Reply