Fatal error: Out of memory

i have a memory issue while NextgenGallery try to create the thumbnails.

Wp-Version is 3.4.1

Read More

Fatal error: Out of memory (allocated 29884416) (tried to allocate 2000 bytes) in
/xxx/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php
on line 179

But my memory is not exceeded:
PHP Version : 5.2.17 / 32Bit OS
Memory limit : 128 MByte
Memory usage : 27.75 MByte

I am getting desperate trying to solve this issue.

Many thanks in advance for any help,
Joe

Related posts

Leave a Reply

2 comments

  1. I’m not sure where you’re getting those stats, but I doubt that is showing you the amount of memory being used while processing the images. If you navigate to some memory use screen, you’re seeing the amount of memory currently allocated, which is now an entirely different process from when you were uploading images. The fact that Out of memory (allocated 29884416) is already larger than 27.75 MByte points to this.

  2. this just means you need to make a small change in your .htaccess or create a php.ini to increase the allocated memory for WordPress.

    You and your visitors will see this out of memory error when WordPress is trying to process something (in your case the thumbnails).

    Try either of these to fix the problem
    1. Create a file in your root /WordPress folder called php.ini , add this line in PHP.ini
    memory_limit = 64M;
    2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M

    You can also try increasing it to 128M or 256M

    If that doesn’t work – contact your web host provider for their preferred method.