0

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

2
  • 3
    Switch to PHP 7.2, turn on WP_DEBUG and check which plugin causes errors. Commented Feb 20, 2019 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
    Commented Feb 20, 2019 at 15:25

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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