fatel error

by 4 replies
5
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
#programming #error #fatel
  • 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.
    • [ 1 ] Thanks
  • 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
  • Banned
    [DELETED]
    • [ 1 ] Thanks
  • sorry what line mate?
  • 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

Next Topics on Trending Feed