We have a wordpress site that required a PHP 7.2 update. The update failed and our host provider said that it was most likely a plugin that we're using. We have about 15 plugins. What would be the best approach to finding out which plugin/s are not compatible with PHP 7.2?

Thanks!! Tom

  • 3
    Switch to PHP 7.2, turn on WP_DEBUG and check which plugin causes errors. Feb 20 '19 at 14:31
  • By check, he means look in the error log, you can also use a tool such as PHPCompat. TBH though, this isn't really a WordPress question but a general PHP question, it might have been better asked on stackoverflow
    – Tom J Nowell
    Feb 20 '19 at 15:25

If you can install and run phpcs from the command line, you can try adding the PHPCompatibility library and running it to generate a report. Examples This will help identify potential issues.

If that's not possible, there's a plugin that will help check your site for PHP compatibility issues called the PHP Compatibility Checker. It will do the same thing as above, but doesn't require running anything from the command line.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.