Crops not working on clean install
-
I’m just setting up a WP site on a clean testing server running a LEMP stack (Ubuntu 16.04, Nginx, MySQL, PHP 7.0). Image Magick is installed and recognised by PHP.
However, image crops using this plugin are not working. When I try to perform a crop, the AJAX action returns with a 500 error, and the following appears in the error log:
2017/05/25 04:55:00 [error] 4226#4226: *332 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WP_Error::resize() in /srv/[site folder]/web/app/plugins/acf-image-crop-add-on/acf-image-crop-v5.php:618 Stack trace: #0 /srv/[site folder]/web/app/plugins/acf-image-crop-add-on/acf-image-crop-v5.php(509): acf_field_image_crop->generate_cropped_image('634', '0', '2800', '240', '959', '1400', '361', false, 'thumbnail') #1 /srv/[site folder]/web/wp/wp-includes/class-wp-hook.php(298): acf_field_image_crop->perform_crop('') #2 /srv/[site folder]/web/wp/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #3 /srv/[site folder]/web/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /srv/[site folder]/web/wp/wp-admin/admin-ajax.php(91): do_action('wp_ajax_acf_ima...') #5 {main} thrown in /srv/[site folder]/web/app/plugins/acf-image-crop-add-on/acf-image-crop-v5.php on line 618" while reading response header from upstream, client: 14.201.19.236, server: [server], request: "POST /wp/wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "[server], referrer: "http://[server]/wp/wp-admin/post.php?post=5&action=edit"I also installed GD just to cover all bases.
Any ideas?
The topic ‘Crops not working on clean install’ is closed to new replies.