4 replies
Hi Whilst transefering 2 blogs

I got this error

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

Only on one of them the other one transfered without the error. Can any shed a little light on this please.

Thanks

Steve M
#error #fatel
  • Profile picture of the author Dylan W
    I believe this error suggest that the php script has made a call to a function called wp that (if not contained in the page in question) is within an include page that has failed to transfer.

    If you look at the script within wp-blog-header.php and look for include"filename" or requireonce"filename" . If these appear, ensure that "filename" or whatever it might be called has been uploaded and to the right location.
    {{ DiscussionBoard.errors[810913].message }}
  • Profile picture of the author steve m
    Hi thanks

    But I have no idea what that means.

    <?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' );

    }

    ?>

    is what I have in the file header file. But am unsure what all this means hahaha

    Steve

    Also I have found this too if this makes any sense to you
    Signature
    {{ DiscussionBoard.errors[810954].message }}
  • Profile picture of the author steve m
    sorry what line mate?
    Signature
    {{ DiscussionBoard.errors[811011].message }}
  • Profile picture of the author steve m
    All sorted now wow that was a mission.... I just deleted all the files and started again from scratch using the original files on my host.

    Thanks for the help lads!

    Steve M
    Signature
    {{ DiscussionBoard.errors[811303].message }}

Trending Topics