WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Fatal Error - Allowed Memory Size (7 posts)

  1. goingbigger
    Member
    Posted 4 years ago #

    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.

  2. SEMPHI
    Member
    Posted 4 years ago #

    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 gd.thumbnail.inc.php. 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 (one.com) 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?

  3. grezvany13
    Member
    Posted 4 years ago #

    @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.

  4. airans
    Member
    Posted 4 years ago #

    @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/gd.thumbnail.inc.php on line 176

    is there something else I should be doing?

    thanks for the help

  5. cosmictap
    Member
    Posted 4 years ago #

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

  6. carmeljune
    Member
    Posted 3 years ago #

    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!

  7. wwg
    Member
    Posted 3 years ago #

    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. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.