• Resolved Hikescdnrckys

    (@hikescdnrckys)


    When uploading a new image using the flash loader, I get the following messages:

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 567

    Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 1026

    Warning: Division by zero in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 297

    Warning: Division by zero in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 314

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 448

    Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.php on line 1026

    Warning: getimagesize(/home/content/09/11100909/html/wp-content/gallery/wildlife/thumbs/thumbs_coyote-5e032ec8d4655b9bd17c3b0a2fa9b2f2f48115be.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/09/11100909/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_gallerystorage_driver.php on line 419

    The result is the file gets uploaded but there is no thumbnail when you look at the gallery, so all you can do is delete the image again. Note that I can upload the same file through Gallery, Add Gallery/Images.

    I am running NextGen Gallery 2.0.21 PHP 5.3 and MySQL 5.0. mod_rewrite Apache module is active but have been unable to check yet the status of PHP Safe Mode. The permissions on wp-content is 755. It’s hard to determine if this ever worked as users only started uploading recently at the current levels of WordPress and NextGen.

    http://wordpress.org/plugins/nextgen-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Hikescdnrckys

    (@hikescdnrckys)

    My PHP safe mode is indeed OFF.

    Can anyone on the NextGen team help?

    Here is a link to my site.

    I have exactly the same issue

    Plugin Contributor photocrati

    (@photocrati)

    All – Please submit a Bug Report here: http://www.nextgen-gallery.com/report-bug/ for this issue.

    We will likely need to get log in credentials for your WordPress installation and my also need FTP credentials, too.

    Thanks!

    – Cais.

    Thread Starter Hikescdnrckys

    (@hikescdnrckys)

    OK I discovered the issue in case others have this problem. After de-activating one plugin at a time and trying to upload, it looked like a plug-in wasn’t the issue. Just to be sure I de-activated all plug-ins except NextGen Gallery and NextGen Public Uploader and tried again – still the same errors.

    On recommendation of support – I tried with all plug-ins de-activated except for NextGen and NextGen Public Uploader to change the theme from Attitude free theme from Themehorse to a default WordPress theme Twenty-Twelve. Then tried to upload the image. Different error this time:

    Allowed memory size of xxxxxxxx bytes exhausted….

    So support suggested finding out what the PHP Memory size was and increase to 128MB at least. I am on a GoDaddy shared Linux server.

    I uploaded a phpinfo.php file to my html root folder on my GoDaddy shared Linux server then pointed my browser to my phpinfo.php file on my website and discovered my memory limit was only 64MB.

    I was able to create a php5.ini file with memory_limit = 128M in the file, upload it to my root html folder, go into GoDaddy and End all my processes, and then using opened up my web browser again to the phpinfo.php file and noticed that my memory limit was now 128M instead of the original 64M limit.

    I repeated the test and was now successfully able to upload the image! So it was memory all along – which I guess was masked by the Attitude Theme from Themehorse but exposed using the Twenty Twelve theme!

    So in case other experience this – try increasing your memory limit in PHP.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invalid image dimension error on flash uploader’ is closed to new replies.