PHP fatal error on WP

[ad_1]

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 274

I 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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer