In my case, the problem manifested itself as follows: the ‘Thumbnail Generation Alert!’ warning message appeared on the plugin page whenever I go there even though phpinfo() and WP would report that GD library is installed and is functioning with no issue. When going to FooGallery | Settings | Images | Run Tests, it would fail the test with the ‘image_no_editor’ error message.
After debugging the issue, in my case it turned that that JPEG support for GD library was not installed on my server, even though the GD library itself has been installed correctly and had PNG images support enabled. Because a JPEG image has been used in the tests by FooGallery, the _wp_image_editor_choose() builtin WP function returned false for JPEG, as PHP imagetypes() function called by WP_Image_Editor_GD::supports_mime_type(inherited by WP_Thumb_Image_Editor_GD) would indicate that JPEG is not supported.
So if nothing works for you, make sure that “php -r ‘print_r(gd_info());'” command indicates JPEG support on your server. Also, make sure you run correct php binary in this command: in my setup I had builtin php command that indicated JPEG is supported, however apache2 uses another php command located in /usr/local/php-5.4.5/bin, so in my case the proper command to reveal the issue was “/usr/local/php-5.4.5/bin/php -r ‘print_r(gd_info());'”.
In my case it was possible to recompile PHP 5.4.5 from sources as suggested by the “Compiling PHP with GD and libjpeg support” article that can be found using search. After doing so and running “make install”, the problem was gone: the tests would pass, the thumbnail images start getting generated and the warning is gone.
See also:
]]>After installing the plugin, i get this message on top of the galleries page (admin)
Thumbnail Generation Alert!
There is a problem generating thumbnails for your gallery. Please check that your hosting provider has the GD Image Library extension installed and enabled.
If thumbnails cannot be generated, then full-sized, uncropped images will be used instead. This will result in slow page load times, and thumbnails that do not look correct.
I have already contacted my hosting company and asked them to check it. The said that the GD Image Library extension is 100% installed and enabled.
Do you have any idea what could be the problem?
Thanks,
Best regards
Nin0
However, this is on WP Engine, where I have multiple other sites using FooGallery + Albums with the same set of plugins and the same custom base theme with no errors. WP Engine support says GD Image Library is never installed on their servers – so why are the other sites working fine, no FooGallery issues? And how do I fix this one?
]]>However, this is on WP Engine, where I have multiple other sites using FooGallery + Albums with the same set of plugins and the same custom base theme with no errors. WP Engine support says GD Image Library is never installed on their servers – so why are the other sites working fine, no FooGallery issues? And how do I fix this one?
]]>Thumbnail Generation Alert!
There is a problem generating thumbnails for your gallery. Please check that your hosting provider has the GD Image Library extension installed and enabled.
If thumbnails cannot be generated, then full-sized, uncropped images will be used instead. This will result in slow page load times, and thumbnails that do not look correct.