• Resolved junomagic

    (@junomagic)


    Hi,

    I’ve been using NextGenGallery on one of my WordPress blogs for months now and never had any problems with thumbnail creation, no matter if my pictures were 1280px x 960px or really small.

    Since the upgrade to WordPress 2.6.3 I always get: (Error : Exceed Memory limit. Require : 51.6 MByte) – even when I’m uploading a picture that’s 100px x 100px at 15 KB.

    To the best of my knowlegde nothing has changed server-side.

    Therefore I don’t think that this can be an issue of the memory limit/the GD thingy. After all, it’s been working fine with the memory limit of 48 M for many months!

    I’ve tried changing the ini.set in the thumbnails php, but that doesn’t help. Same error.

    Any idea what I can do?

Viewing 14 replies - 1 through 14 (of 14 total)
  • what is your server memory limit ? (see it on the next-gen control panel)
    Try to change some settings like Cache single pictures in the Options — Images.
    Try to change resample mode, and Disable the FLASH uploadr…
    I am not sure any of these will help, but let me know if it does

    Thread Starter junomagic

    (@junomagic)

    The memory limit is PHP Memory Limit : 48M.

    I’m using Cache single pics, have flushed the Cache.

    I’m not using the Flash upload.

    I’ve also upgraded both my WordPress install and the NGGallery to the latest versions.

    But it’s still not working. I’ve also tried the uncommenting 128M trick in that thumbnails file, and it’s not working either. ??

    Please post your server settings

    Thread Starter junomagic

    (@junomagic)

    * Betriebssystem : Linux
    * Server : Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c
    * Speicherverbrauch : 51.1 MByte
    * MySQL Version : 5.0.32-Debian_7etch4-log
    * SQL Modus : Nicht gesetzt
    * PHP Version : 5.2.0-8+etch10
    * PHP Safe Mode : An
    * PHP Allow URL fopen : Aus
    * PHP Memory Limit : 48M
    * PHP Max Upload Gr??e : 2M
    * PHP Max Post Gr??e : 8M
    * PHP Max Script Execute Time : 30s
    * PHP Exif Modul : Ja ( V1.4 )
    * PHP IPTC Modul : Ja
    * PHP XML Modul : Ja

    I’ve been trying to increase the memory limit using the various tricks posted for this problem, but I’m afraid I don’t know enough code to make them work. I’ve also contacted my host to increase the memory limit for me and I hope they’ll do that.

    What I don’t get is that it stopped working from one day to the next without me adding any new plugins or anything – I think you said it’s the plugins that push the memory limit? And today I’ve deleted all the plugins I can spare (more than that, actually) and the memory usage only goes down by .01 degrees.

    I feel the server setting didn’t work correct, your memory_usage is already higher that the limit, so it should normally stop working at all.
    I can show how to disable the memory check, but I’m not sure if it helps out

    Thread Starter junomagic

    (@junomagic)

    I’m willing to try anything!

    And apart from the thumbnails it’s working perfectly fine, even with really big images… Very strange.

    So if it’s the server setting, then that would make it a problem my host should (be able to) resolve?

    Goto gd.thumbnail.inc.php

    and delete or comment out the lines 170-174 :

    if($this->error == false) {
    // Check memory consumption if file exists
    $this->checkMemoryForImage($this->fileName);
    }
    Thread Starter junomagic

    (@junomagic)

    Hooray! Now it’s creating thumbnails again!

    Thank you so much!

    Thx alexrabe,

    It works fine now, great support

    Regards,
    Hein

    I’m not sure if anyone is still encountering the issue, but altering your php.ini file and adding it to your wp-admin directory will also correct the error.

    Thank you eorourke!! That worked for me ??

    urbansloth

    (@urbansloth)

    My thumbnails also don’t work. Where is the php.ini file? and how do you alter it? Thanks.

    lotgla

    (@lotgla)

    I am still experiencing the samw problem although I removed the lines from the gd.thumbnail file. The file itself is uploaded but the thumbnails are not created.

    Unfortunately I can’t change the php.ini file since that appearantely is not within my reach (it’s owned by the webbhost I am using).

    This is my errormessage:
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4272 bytes) in /hsphere/local/home/lotgla/glanssmycken.se/wordpress/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 180

    These are my serversettings:
    Operating System : Linux
    Server : Apache/1.3.37 (Unix) Sun-ONE-ASP/4.0.2 PHP/5.2.2 mod_throttle/3.1.2 FrontPage/5.0.2.2635 mod_psoft_traffic/0.2 mod_ssl/2.8.28 OpenSSL/0.9.6b
    Memory usage : 13.03 MByte
    MYSQL Version : 5.0.41-community-log
    SQL Mode : Not set
    PHP Version : 5.2.2
    PHP Safe Mode : On
    PHP Allow URL fopen : On
    PHP Memory Limit : 32M
    PHP Max Upload Size : 100M
    PHP Max Post Size : 50M
    PHP Max Script Execute Time : 300s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes

    Alex Rabe

    (@alexrabe)

    Ask your hoster to increase the memory_limit or you need to use smaller images

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: NextGEN Gallery] Upgrade to WordPress 2.6.3 makes thumbnails stop working’ is closed to new replies.