Fatal error: Uncaught Error: Call to undefined function wp()

I keep getting the below message and I can't access my website:

Fatal error: Uncaught Error: Call to undefined function wp() in /home/q77bvndhxly7/public_html/wp-blog-header.php:16 Stack trace: #0 /home/q77bvndhxly7/public_html/index.php(17): require() #1 {main} thrown in /home/q77bvndhxly7/public_html/wp-blog-header.php on line 16

Topic wp-blog-header.php Wordpress

Category Web


It looks like something's broken in your copy of WordPress, either wp-load.php or includes/functions.php or something else in between. Take a backup of everything, then try following the manual update instructions here

https://wordpress.org/support/article/updating-wordpress/#manual-update

to replace all of the WordPress core file with a fresh copy.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.