• Resolved mikepolinske

    (@mikepolinske)


    I updated to 4.7 this morning. Big mistake for a newbie!

    After the update was finished when I tried to load the admin page I got an error with Jetpack plugin.

    So I disconnected that.

    Then when I went to load the admin dashboard I got an error with the biblegateway_votd plug in.

    So I followed directions in the forum on how to disable all plugins through phpMyAdmin.

    Now when I go to admin dashboard I get the following error:

    Fatal error: Call to undefined function get_user_locale() in /home/micpol26/mikepolinske.info/blog/wp-admin/admin-header.php on line 165

    At this point would I be better off just restoring from my updraftplus backup which was taken last night before I messed around with all this, or is there a better way to fix this.

    I’ve been running my blog for almost 2 years now but this was the first time I manually updated my WordPress, previously I’d lest my webhost, Dreamhost do the update.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter mikepolinske

    (@mikepolinske)

    I seem to be able to access my WordPress dashboard.

    The steps I took to resolve it are:

    1. Logged into an SSH session for my web site and switched to the directory of my blog.
    2. Ran “wp core update”

    It was not necessary to update the databases as the previous command did that.

    prsc

    (@presscat2015)

    Or restarting Apache web server might resolve the issue.

    sudo service restart apache2 restart

    Thread Starter mikepolinske

    (@mikepolinske)

    Thank you Presscat. Good to know for those who don’t have WP-CLI installed on their site.

    Thanks mikepolinske! I had the same issue and after uhhh some light revision of how ssh works, basic unix commands and “how to run wp core update” and then using your suggestion, my update has now completed successfully! ??

    Also v. glad my webhost installed WP-CLI on their servers, a fact which I was not aware of till now!!

    Thread Starter mikepolinske

    (@mikepolinske)

    You are welcome.

    I wouldn’t have known about the WP-CLI either until I did some deep searching in Google. I was so relieved when I tried the commands and they seemed to work.

    Fairly new to all this web stuff and have been listening to a podcast called “Taming The Terminal” that introduces the Terminal in macOS but much of it also applies to Unix shell too.

    I think the lesson I learned is to let my web host do the update next time. Save myself a lot of frustration and headache. But it was a learning experience.

    guys can you please help i’m also facing the same problem

    Fatal error: Call to undefined function get_user_locale() in /home/naresh1709/public_html/wp-admin/admin-header.php on line 165

    Disabling opcache during the upgrade worked for me.

    Hi there people, I run thru the same issues in a couple sites and disabling opcache allowed me to complete the upgrade from WP 4.5 to 4.7.

    I think the updater script should check if opcache is enabled and then call the necessary PHP functions to empty cached values before loading the about.php page.

    The fact that by using wp-cli does works, is mainly because the PHP thread running on console are different and isolated than those being run thru Apache. That’s why also restarting Apache does the trick.

    But at the backend level, the only thing WP can do is detect opcache and empty its values. Some kind of warning or notification printed before starting the upgrade would be appreciated by webmasters all around the world, I think.

    You can take inspiration on how to deal with PHP opcaches by taking a look at the code of W3 Total Cache plugin, which does it amazingly.

    Best regards

    Oh and by the way,… opcache cache is temporarily stored in RAM to accelerate websites. It’s not usually set to be persistent. So, if you are in a shared hosting with no access to console or any possibility to restart your Apache, you could simply wait 10-30 minutes to let the cache expire and by reloading the page the process should resume.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Call to undefined function get_user_locale’ is closed to new replies.