wordpress wp-blog-header.php on line 16

admin

Administrator
Staff member
I have a site made in wordpress and from one moment to the next it does not work. You can not see the site as before, so I investigate and I get the following error.

error“Call to undefined function wp() in /home……..public_html/wp-blog-header.php on line 16”
how can i fix it?
regards



if ( !isset($wp_did_header) ) {

Code:
$wp_did_header = true;

// Load the WordPress library.
require_once( dirname(__FILE__) . '/wp-load.php' );

// Set up the WordPress query.
wp();

// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );

}