How to fix this this error Fatal error: Call to undefined function...?

  • Fatal error: Call to undefined function wp() in /home/content/33/7211533/html/someSite/wp-blog-header.php on line 14

    Can anyone figure whats the problem?

    I already update the wp-includes and wp-admin folder and my functions.php is fine, but I haven't figure out how to fix it. Any suggestions?


    EDIT

    I reinstalled WordPress, (upload the new copy on the site, and I made sure it's up to date) - equivalent to a manual update.

    After that its started to work fine, so this problem is now fixed.

    You're going to need to provide quite a bit more information, about your environment (WordPress version, active Theme/Plugins, etc.), anything out of the ordinary that you might be doing, and where/how you're getting the error.

    Please add your solution as an actual answer instead of as an edit to the question.

    Check WP Error Fix (http://wordpress.org/plugins/wp-bug-tracker/) plugin. I guess it was called WP Bug Tracker before.

  • Rarst

    Rarst Correct answer

    9 years ago

    wp() is quite essential function. It resides in functions.php file (don't confuse with functions.php in theme, different thing) and I don't think you can load WP without passing require directive for that file at some point.

    So your install seems very broken - either functions.php file in core is damaged or something else is broken and makes it skip loading that file.

    yes your right man , what I did is I reinstall everything...I fix the problem already before I read your answer, but your answer is same as mine , so I'll pick your answer too :)

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM