Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Fatal error: Allowed memory size of 33554432 bytes exhausted
I’m getting this error when uploading an image. Everything else seems to work just fine. Any directions?
I’ve already gone in to phpMyAdmin and repaired a few tables (images, files, log) and the problem persists.
Thanks for your help!
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9328 bytes) in /nfs/c03/h04/mnt/57222/domains/amesandjess.com/html/textpattern/lib/class.thumb.php on line 163
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
How big is the image in height/width (pixels) and in kilobytes?
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
it’s 500k, 2300 × 3500
same size as hundreds of other images that have been uploaded to the site over the past year or so.
Last edited by claywso (2010-11-11 15:05:47)
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
Interesting. Strange that it causes problems now, but the solution is to increase the memory limit, which can be done in php.ini, but I’m pretty sure there was something in TXP that allows thumbnail creation to override the default limits, at least in recent versions…. which TXP version do you use?
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
4.0.8
i’ll update to the latest version and report back.
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
odd, so i upgraded to 4.3
all the images showed up, but without thumbs.
when i went ‘edit’ an image and choose ‘create thumb’ i get the same error.
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
so, i made the original image smaller, re-uploaded, and all is fine. odd that this hasn’t ever happened before, but at least it’s working.
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
Could be that a newer PHP version was installed which consumes more memory, so the memory limit is reached sooner.
Offline
Re: Fatal error: Allowed memory size of 33554432 bytes exhausted
I’ve seen this before too with a php image resizer script and it has to do with the memory required for the image resizing/resampling commands in php. AFAIK the image dimensions (rather than the kb-size) affect that. I tried upping the memory limit too by various means as I had no access to php.ini but to no avail.
TXP Builders – finely-crafted code, design and txp
Online