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.
wp()
is quite essential function. It resides infunctions.php
file (don’t confuse withfunctions.php
in theme, different thing) and I don’t think you can load WP without passingrequire
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.Your
wp-config.php
file might be empty for some reason.When I migrated to Siteground, I don’t know why Siteground changed the include file in the last line of
wp-config.php
file to a wrong directory.The correct path should be this one instead:
It seems the issue was a result of corrupted wp-config.php
I updated the local version with the database credentials and uploaded via ftp and it worked.
This problem can be caused by using the automatic update when you don’t have enough disk space. If that is the case, free up some space on your server, then upgrade WordPress to the latest version manually.
Had the same issue. Have an easier solution:
My wp-load.php got emptied/cleared when I was uploading a plugin and it failed. That was super weird.
If you go to your WP root, just sort by recently edited and you’ll find the problem file.
Then you just need to upload that file from a fresh install. In my case I just overwrote wp-load.php
amazing…if you have fatal error or call to undefined funcction jus go to your email and on that email you may have a sent message from your hosting adress…just reinstall or from that email page you log in…problem will be fixed..