Support » Plugins » [Plugin: NextGEN Gallery] Fatal error when creating thumbnail

  • Resolved HFigarella


    My memory limit on the server is 20 Mb, but when uploading a 3100 x 1744 (2.13 Mb) photo will give the following error when creating the thumbnail:

    Fatal error: Out of memory (allocated 52953088) (tried to allocate 3100 bytes) in … /wp-content/plugins/nextgen-gallery/lib/ on line 183

    The photo is actually uploaded and opens in the gallery; but no thumbnail. The error message also shows when clicking on “Edit thumb”.

    Fatal error: Out of memory (allocated 53215232) (tried to allocate 4204 bytes) … on line 927

    I am using WordPress2.9-rare and NextGEN Gallery Version 1.4.0a, but the error happens in previous versions too. If the same photo is resized to lower pixels (3000 x 1688 pixel, 2.02 Mb), it works fine.

    Server Settings
    Operating System : Linux
    Server : Apache
    Memory usage : 25.86 MByte
    MYSQL Version : 5.0.51a-log
    SQL Mode : Not set
    PHP Version : 5.2.4
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 200M
    PHP Max Upload Size : 20M
    PHP Max Post Size : 8M
    PHP Max Script Execute Time : 300s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes

    Graphic Library
    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 : No
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

Viewing 2 replies - 1 through 2 (of 2 total)
  • Alex Rabe


    You don’t have a limit of 200MB, as you can see from the error message your limit is 52 MB and your current usage is already 25.86 MB. whatever you have set in php.ini or elsewhere… it will be ignored.



    You are right, Alex. iPower sets my limit to 52 MB. I am trying to have them increase it.

    I temporarily increased my available memory by deactivating other plugins, and no error show now. (WordPress2.9-rare and NextGEN Gallery Version 1.4.0a)

    This is an awesome plugin! Congratulations, and thanks Alex.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Fatal error when creating thumbnail’ is closed to new replies.