Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-21 05:12:10

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Fatal error: Allowed memory size of 33554432 bytes exhausted

I’ve got this error when uploading large images (3mg):

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3504 bytes) in /home/public_html/textpattern/lib/class.thumb.php on line 163.

I have set “Maximum file size of uploads (in bytes)” to “67108864”

I’ve got this plugins installed:

  • asy_sitemap
  • bos_image_display
  • bot_privs
  • ebl-image-edit
  • fpx_image_import
  • glx_admin_image
  • hak_tinymce
  • ied_hide_in_admin
  • kml_flashembed
  • ob1_title
  • rah_sitemap
  • rss_auto_excerpt
  • upm_image
  • upm_img_popper

but only these ones live:

  • bos_image_display
  • glx_admin_image
  • hak_tinymce
  • ied_hide_in_admin
  • kml_flashembed
  • ob1_title
  • rah_sitemap
  • rss_auto_excerpt

But still get the problem with all disabled :(

Any ideas?

I’ve just noticed that the images actually upload – but give this error, I think the error comes from thumb creation as when I tried to make a thumbnail from the image, I got the same error

Using txp 4.08

Last edited by tye (2009-04-21 05:34:51)

Offline

#2 2009-04-21 17:38:02

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

What is your maximum memory amount you are allowed to use? Are you allowed to define PHP settings and ini values? (most cheap hosts don’t allow these actions). The you could try to set higher memory limit, via .htaccess:

php_value memory_limit 65M

Better would ofcourse to insert that directly to php.ini file (faster).

tye wrote:

I’ve just noticed that the images actually upload – but give this error, I think the error comes from thumb creation as when I tried to make a thumbnail from the image, I got the same error

Because a thumbnail creation from a large image requires enourmous amount of memory. If you need to create a thumbnail for a large image, do it manually and directly upload the thumbnail to the server. Or get a real server with out memory restrictions, and with a lot of memory.

Offline

#3 2009-04-21 22:55:13

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

my memory limit is 128M – does that need to be more?

Offline

#4 2009-04-21 23:11:36

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Ah bugger, I increased it to 512M and still got the error… maybe I’ll just have to create the thumbnail manually

Offline

#5 2009-04-21 23:27:34

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

I had another error though:

Extension GD is loaded by default.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9260 bytes) in /home/public_html/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 140

Offline

#6 2009-04-22 00:03:25

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

So this problem is happening on any image over 1mb… is that righ?

Offline

Board footer

Powered by FluxBB