I just switched webservers, and imgsizer stopped working. It just displays a blank page for every template with imgsizer tags. Any ideas? I’ve tried adjusting my cache settings and done everything I can think of. I’m using version 2.5.6, but I get the same problem with earlier versions.
Luke
My first suggestion is to double check the permissions of the folder imgsizer is writing to.
If that doesn’t solve the problem, try turning on Template Debugging (Admin > System Preferences > Output and Debugging Preferences) and see if anything is off there.
If the page is still blank in that case it may be PHP errors. Try turning error reporting on for super admins (same location as template debugging in the CP) and also checking your PHP error_log if you have access to it (depends on your hosting provider).
Thanks Erik. I got it figured out - gd was compiled with PHP on the server, but the -with-jpeg-dir=/usr option was not.
So, if anyone else is having this annoying problem - make sure your PHP is compiled with jpeg support. (You might want to add png support while you’re at it.)
Edit:
To make sure that your gd is working well, put this in an empty template, enable PHP in the admin, and look at the template from the front-end:
<?php
var_dump(gd_info());
?>The results should look something like this:
array(11) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.