$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>PHP 7.2 Challenge|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

PHP 7.2 Challenge

matteradmin9PV0评论

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
Add a comment  | 

1 Answer 1

Reset to default 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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far