Support » Plugins » [Plugin: NextGEN Gallery] Fatal Error – Allowed Memory Size

  • Today I received a fatal error when uploading photos through nextgen-gallery, image error. Is there a way to increase the allotted storage space? I am using nextgen-gallery to manage my office’s real estate listings. Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ve had the same problem as described in the first post. It seems that, after a while, the nextgen gallery (or maybe the whole WordPress installation?) starts using more and more memory.

    There are 2 easy solutions that you could try, but they didn’t work for me.

    1. I tried allocating more memory to my hosting by uncommenting the line “// @ini_set(‘memory_limit’, ‘128M’);” in Unfortunately, this fix didn’t work for me.
    2. I’ve also tried altering the memory_limit with .htaccess but then I get an error 500 right away. You can try doing this by adding the following line to your .htaccess: php_value memory_limit 48M

    I asked my host ( and they told me that they don’t allow users to change the memory_limit. To me, that sounds weird, since it’s the first host that I’ve come across that limits their users to just 24M. But hee, at least they’re cheap.

    So, I still get an error with pictures over 600px wide and portrait oriented pictures almost always give the fatal error. And yes, even though it had been working fine in the past.

    I love NextGEN, but I’ve really had it with this host! Is there a workaround or a way to do this while using less memory? Or should I consider changing hosting?

    @goingbigger: read the 2 solutions SEMPHI provides, that should work. Unless you have the same host 😉

    @semphi: the best solution would be change hosting, although there is a simple solution. If you have FTP access to your WordPress installation you also can upload the photo’s to /wp-content/gallery/gallery-name/ and use the import function ( WP Admin > Gallery > Add Gallery / Images > Import image folder) which will handle the new files the same as when you upload them.

    @grezvany: I did what you described: I put my image folder in the wp-content/gallery folder, and then in wordpress used “import image folder”

    it says that it imported the images, but it wont make thumnails for them. when I try to manually make the thumbnails, it says:
    Fatal error: Out of memory (allocated 32505856) (tried to allocate 11264 bytes) in /”mywebpage”/wp-content/plugins/nextgen-gallery/lib/ on line 176

    is there something else I should be doing?

    thanks for the help

    I’m getting the same error even with my memory limit successfully upped to 128. Other ideas?

    I realise this post is 8 months old but is there a solution???

    I have asked the same question in a post called “uploading pictures – Fatal error: Allowed memory size” but so far I can’t find that post.

    Is there an answer to this memeory problem?? it seems so insane, or at least it is making me that way!

    After troubleshooting this issue myself this week, it was determined by my host that the GD library, it’s dependencies, and PHP had to be rebuilt… which did the trick, everything’s running smoothly now. If you’re seeing these errors, you may want to consider contacting your host before you go changing your core files. 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: NextGEN Gallery] Fatal Error – Allowed Memory Size’ is closed to new replies.