Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-11-11 14:44:16

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

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

#2 2010-11-11 15:02:49

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Fatal error: Allowed memory size of 33554432 bytes exhausted

How big is the image in height/width (pixels) and in kilobytes?

Offline

#3 2010-11-11 15:05:15

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

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

#4 2010-11-11 15:54:22

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#5 2010-11-11 15:56:17

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

Re: Fatal error: Allowed memory size of 33554432 bytes exhausted

4.0.8

i’ll update to the latest version and report back.

Offline

#6 2010-11-11 16:03:06

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

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

#7 2010-11-11 17:39:30

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

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

#8 2010-11-11 18:44:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#9 2010-11-12 07:46:36

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Board footer

Powered by FluxBB