• Hi there,

    after updating Polylang to 2.3.8 I’ve get an “white screen” (only backend of WordPress). After turning on the Debug mode I get the following error message for this white screen:

    PHP Fatal error: Call to undefined function get_user_locale() in …/wp-content/plugins/polylang/include/filters.php on line 232

    How can I fix this error?

    Thanks in advance for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter danishi27

    (@danishi27)

    For solving the problem at least temporarely, I’ve deleted the polylang directory with the version 2.3.8 fia FTP and uploaded the polylang directory version 2.3.7 manually.
    This helps me for now (the white screen in the backend doesn’t appear anymore when logged in as admin), but a fix would be great anyway for further updates.
    Thanks!

    in line 232 of /wp-content/plugins/polylang/include/filters.php, substitute get_user_locale() by get_locale()
    Get rid of White screen

    @fom22 Thanks, I had the same issue and this helped.

    I found out that get_user_locale() was added as late as WordPress 4.7.0, and I have been using an older version. However, the official plugin page at www.ads-software.com states that the minimum required WordPress version is 4.4.0, so the user is free to install the plugin and does not get warned.
    Could you please reflect these facts in the plugin information?
    (The line is present in all the versions from 2.3.8 up.)
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error after update to 2.3.8’ is closed to new replies.