Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-21 12:28:46

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

1,2MB image upload error

after upload I get this error:

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 8000 bytes) in /www/05/aspa.ee/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 200

I increased maximum file size of uploads (in bytes) under admin tab to 7 MB, but no help :(

Offline

#2 2007-03-21 14:21:15

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

Re: 1,2MB image upload error

Perhaps the upload size is also limited in php.ini

Offline

#3 2007-03-21 14:28:01

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: 1,2MB image upload error

ruud wrote:

Perhaps the upload size is also limited in php.ini

I can’t find such a file in my textpattern directory

Offline

#4 2007-03-21 14:29:51

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: 1,2MB image upload error

You’ll have to ask your hosting provider if the upload size is limited in php.ini.


Regards,

Joey

Offline

#5 2007-03-21 15:20:42

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

Re: 1,2MB image upload error

Let them also check the maximum allowed memory usage for a PHP process.

Offline

#6 2007-03-22 11:51:49

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: 1,2MB image upload error

I found a similar problem with a site hosted at Dreamhost, where they have set an upload size limit of 7Mb in php.ini (non editable by the user, short of compiling your own version of PHP). What I did was upload the files via FTP to the files folder and then “create” them in the TXP interface, under Content > Files. Maybe this will work for you.

Offline

#7 2007-03-22 22:34:21

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 1,2MB image upload error

The error is caused by a plugin. It has nothing to do with the upload file limit.


Alex

Offline

#8 2007-03-22 23:16:08

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: 1,2MB image upload error

To expand on what Alex said, this is how we know that: “eval()’d code on line 200”.

Offline

#9 2007-03-23 14:55:59

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: 1,2MB image upload error

zem wrote:

The error is caused by a plugin. It has nothing to do with the upload file limit.

which plugin? I have installed glx_admin_image, upm_image, and upm_img_popper and can anyone tell me : what the upload image file limit is in this case?

Offline

#10 2007-03-23 15:07:55

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: 1,2MB image upload error

You could activate them one at a time and check which one throws up the error. Then check in the forum thread for this plugin. Or try to reinstall, maybe you have a corrupt plugin file…

Last edited by jordi (2007-03-23 15:10:21)

Offline

#11 2007-03-24 00:58:56

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: 1,2MB image upload error

Neither of mine touch file uploads. I think the glx one does.

Offline

#12 2007-03-27 13:01:37

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: 1,2MB image upload error

jordi wrote:

You could activate them one at a time and check which one throws up the error. Then check in the forum thread for this plugin. Or try to reinstall, maybe you have a corrupt plugin file…

even deactivated glx_admin_image before the upload causes the error:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 8000 bytes) in /www/06/muinasjutupidu.ee/textpattern/textpattern/lib/class.thumb.php on line 165

uninstall…the same :(

Last edited by Gallex (2007-03-27 13:25:53)

Offline

#13 2007-03-27 13:14:41

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

Re: 1,2MB image upload error

What is the width and height of that image in pixels?
Suppose the image is 2048×1526, 24-bits. That’s 2048×1526×3 = 9437184 bytes (even if it’s much smaller as a JPEG file)
With bigger images and perhaps some auto-thumbnailing going on, combine that with the memory usage of TXP itself and you may very well exceed the memory limit.

Offline

#14 2007-03-27 13:30:51

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: 1,2MB image upload error

ruud wrote:

What is the width and height of that image in pixels?

2000×2805, 24-bits

Suppose the image is 2048×1526, 24-bits. That’s 2048×1526×3 = 9437184 bytes (even if it’s much smaller as a JPEG file)
With bigger images and perhaps some auto-thumbnailing going on, combine that with the memory usage of TXP itself and you may very well exceed the memory limit.

Offline

#15 2007-03-29 01:12:53

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 1,2MB image upload error

At an absolute minimum, that image requires about 16mb of memory, not counting overheads. If PHP’s image processing files make a copy of the image in memory (something we have no control over), you can at least double that. Your memory limit setting is at 24mb. Textpattern itself typically uses 2-4mb.

I checked in a tentative change that attempts to increase the memory limit to 32mb when resizing images (svn r2263). It needs testing.

Last edited by zem (2007-03-29 01:14:13)


Alex

Offline

Board footer

Powered by FluxBB