Status
Not open for further replies.

BattleDuty

Banned
Banned
922
2011
352
0
Need some help.. I asked my provider to fix, but no response for past 3 hours.. I cannot wait any more.

Fatal error: Call to undefined function wp() in /home/xxx/public_html/wp-blog-header.php on line 14

How do I fix this?

My wp-blog-header.php

PHP:
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */

if ( !isset($wp_did_header) ) {

	$wp_did_header = true;

	require_once( dirname(__FILE__) . '/wp-load.php' );

	wp();

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

}

?>


Thanks!
 
5 comments
either comment out wp(); or remove it.

Or define what that function does because there does not seem to be any type of function set for it.
 
Removed wp();

Getting this error now

Warning: require_once(/home/xxx/public_html/WPINC/template-loader.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxx/public_html/wp-blog-header.php on line 14

Fatal error: require_once() [function.require]: Failed opening required '/home/xxx/public_html/WPINC/template-loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/wp-blog-header.php on line 14
 
^^Tried it mate.. Still same :'(

I just checked my wp-config and it looks messy.. everything in one line..

Should I replace and change the values?

Thanks!

EDIT: Fixed it.. Site loads at my end and not for anybody :'(

What can be the issue?

Thanks!
 
Last edited:
Status
Not open for further replies.
Back
Top