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
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
Share Improve this question asked Feb 20, 2019 at 14:26 Tom AthosTom Athos 1 2- 3 Switch to PHP 7.2, turn on WP_DEBUG and check which plugin causes errors. – Krzysiek Dróżdż 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
Reset to default 0If 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.