Fix for those who have plugin errors
-
So this plugin crashed and when i debugged it said undefined function exif_imagetype(). Turns out some servers have this disabled. What I did was to put this
if (!function_exists('exif_imagetype')) { function exif_imagetype($filename) { if ((list($width, $height, $type, $attr) = getimagesize($filename)) !== false) { return $type; } return false; } }
at the start of the wp-content/plugins/square-thumbnails/admin/class-square-thumbnails-admin.php (https://wp-mix.com/php-fix-exif-imagetype-error/ code found here) and the error is gone now.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix for those who have plugin errors’ is closed to new replies.