Title: This plugin is not compatible with PHP7
Last modified: March 30, 2018

---

# This plugin is not compatible with PHP7

 *  [Douglas “BearlyDoug” Hazard](https://wordpress.org/support/users/bearlydoug/)
 * (@bearlydoug)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/)
 * root@vmwp18 19:04:40 > # cat /etc/debian_version
    9.4
 * root@vmwp18 19:04:34 > # php -v
    PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018
   13:51:52) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright(
   c) 1998-2017 Zend Technologies with Zend OPcache v7.0.27-0+deb9u1, Copyright (
   c) 1999-2017, by Zend Technologies
 * Basically, the media library throws a spinner up. There are known issues with
   ImageMagick and PHP7, forcing us to have to use GD (here’s the code I put into
   the theme’s functions.php file):
 *     ```
       // Added by Doug to change image processing...
       add_filter( 'wp_image_editors', 'change_graphic_lib' );        
       function change_graphic_lib($array) {
       	return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
       }
       ```
   
 * FYI, to test this, I switched from the Unicon theme over to TwentyFifteen; no
   change.
 * I deactivated *every* plugin… and reactivated them, one by one. Regenerate Thumbnails
   is the plugin that is causing the Media Library to “hourglass” and not display
   any images.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/#post-10132981)
 * Are you using the latest version of my plugin? I released a fix a while ago that
   was slowing down the media library but that shouldn’t be an issue anymore.
 * If you are, maybe you update to the latest version of PHP and/or ImageMagick?
 * I’m not running the latest versions but I’m using PHP 7.2.1 and ImageMagick 6.9.7-
   4 Q16 x86_64 20170114 in my local Docker development environment with zero issues.
 *  Thread Starter [Douglas “BearlyDoug” Hazard](https://wordpress.org/support/users/bearlydoug/)
 * (@bearlydoug)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/#post-10133007)
 * Evening, Alex! Yes, I’m using the latest version. Unfortunately, ImageMagick 
   is broken on the PHP version we’re using… and we’re at the mercy of Debian for
   their builds:
 * [https://packages.debian.org/search?keywords=php7.0](https://packages.debian.org/search?keywords=php7.0)
 * I think what could potentially solve this issue is either a fallback option, 
   or a configurable option to utilize GD, instead.
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/#post-10133018)
 * Bah, that’s lame of Debian.
 * So even when you force GD via that filter, there’s still issues? How odd.
 * I mean at the end of the day, my plugin is using code and functionality that 
   is built directly into WordPress — I’m not regenerating the wheel or doing any
   image manipulation myself. It’s the exact same code that runs when you upload
   an image for the first time.
 * The only thing really I am doing is seeing if each media library item is capable
   of being resized by the current image editor class so I can see if the “Regenerate
   Thumbnails” button/link should be shown next to each item. (There was an issue
   in previous versions of my plugin that resulted in a slowdown due to this.)
 *  Thread Starter [Douglas “BearlyDoug” Hazard](https://wordpress.org/support/users/bearlydoug/)
 * (@bearlydoug)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/#post-10133022)
 * Alex, we’re in the process of spinning up a development server, running PHP 7.
   I’m already working with one of the WP Devs on a similar (but unrelated) issue(
   centered around PDFs). I’ll make the same offer to you that I made to him: If
   you need access to work in this environment to try to track down where the issue
   is, we can probably get you situated. 13 of our customers are using your plugin,
   and we’re slowly starting to get transitioned from a PHP5 to PHP7 WP host… so
   it might make sense to work together a bit more closely on this. 🙂
 * I should be able to have a barebones PHP 7 WP install situated either tomorrow
   AM or Monday at the latest.
 * Just gave you a follow on Twitter, if you want to work together on this a bit
   more directly (for troubleshooting and tracking purposes)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘This plugin is not compatible with PHP7’ is closed to new replies.

 * ![](https://ps.w.org/regenerate-thumbnails/assets/icon-128x128.png?rev=1753390)
 * [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/regenerate-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Douglas “BearlyDoug” Hazard](https://wordpress.org/support/users/bearlydoug/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/this-plugin-is-not-compatible-with-php7/#post-10133022)
 * Status: not resolved