• I’m running NextGen-Gallery (.96) on WordPress MU 1.5.1 (WP 2.5.1 core). My relevant php.ini settings are as follows:
    upload_max_filesize = 50M
    memory_limit = 64M
    post_max_size = 50M

    When I attempt to upload an image that is 169KB the image uploads and the thumbnail is created as expected.
    When I attempt to upload an image that is 1.32MB I get the following error : “img_3877.jpg (Error : Exceed Memory limit. Require : 35.38 MByte)” & no thumbnail is created.

    When I attempt to ‘create new thumbnails’ within the Gallery itself I get the same error.

    I also ran the 1&1 memory script and passed all the tests.

    What the heck? How in the world is 35.38 MBytes needed to create a thumbnail for a 1.32MB image? And even if it does, what setting is not right in my php.ini file?

    I’ve read every related post I can find. Can’t see what I’m missing. I’m stumped.

Viewing 5 replies - 16 through 20 (of 20 total)
  • minkus

    (@minkus)

    This tripped me up for a few hours – if you upload a large image and get the memory limit error, you have to go in manually (SSH, FTP, etc.) and delete that image. Otherwise you will never be able to upload to that gallery again, even if you delete it and recreate it. The large image will just stay there and give you memory errors ad infinitum.

    saeidzebardast

    (@saeidzebardast)

    Thanks pindsvin

    I was STILL having trouble with 64M. I got further modifying thumbnail.inc.php, uncommenting:

    // @ini_set('memory_limit', '128M');

    as described here by pindsvin. It no longer shows an out of memory error, but it shows a blank page after it processes the thumbnails. I now see the thumbnails getting produced on the server under the wp-content/gallery/[gallery name]/thumbs directory, BUT NextGEN reports only ONE image in the gallery.

    @ggriffin

    If you are still having the memory issues, you may want to try an alternative:
    https://www.youtube.com/watch?v=9h3a1XXROKk (Demo)
    https://www.ads-software.com/extend/plugins/picturesurf-gallery/ (Download)

    Disclosure: I’m one of the people who worked on this plugin.

    Let me know if you run into similar memory issues again.

    Hope this helps.

    I continue to have problems creating thumbnails for “some” of my larger landscape photos.

    I have increased my memory to 500MB throughout, and the change is visible in my overview page. I am running PHP5. Also visible in the overview. I have run the memory test.php and passed. Also, I have un-commented line #168 re: ‘memory_limit’ to 500.

    The error I repeatedly receive is
    Fatal error: Out of memory (allocated 41156608) (tried to allocate 11264 bytes) in /home/asdff/public_html/asdfasdf/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 183

    line 183 is:
    $this->oldImage = ImageCreateFromJpeg($this->fileName);

    Here are my settings:
    Operating System : Linux
    Server : Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    Memory usage : 11.25 MByte
    MYSQL Version : 5.0.67-community
    SQL Mode : Not set
    PHP Version : 5.2.8
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 500M
    PHP Max Upload Size : 500M
    PHP Max Post Size : 500M
    PHP Max Script Execute Time : 30s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes

    GD Version : bundled (2.0.34 compatible)
    FreeType Support : Yes
    FreeType Linkage : with freetype
    T1Lib Support : No
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

    ANY IDEAS? I am stuck.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[Plugin: NextGEN Gallery] Exceed Memory Limit – I’ve Done Everything’ is closed to new replies.