PHP fatal error on WP <5.0
-
I recently upgraded WP Statistics to the latest version and immediately got a “white screen of death” from a PHP fatal error.
PHP error log says the culprit was:
Call to undefined function determine_locale()
...
thrown by [...]/wp-statistics/includes/class-wp-statistics.php line 274I note that the function determine_locale was introduced to WP core in version 5.0.0. My site is running an earlier version of WordPress.
I also note that WP Statistics is intended to work on versions 4.4 and higher per the plugin page.
Removing this plugin brought my site back online.
I like this plugin, and I would love if you would continue to support older versions of WordPress, for example by checking function_exists before calling determine_locale.
Thanks for your help! I hope you have a great day.
- The topic ‘PHP fatal error on WP <5.0’ is closed to new replies.