• Hello there!

    I have a few websites that I run for myself, and one for a friend. Suddenly, my friend’s site has seen an error. She swears she did not make any changes, but now neither the main site nor the Admin Dashboard will load for us. When you go to https://lifeskandy.com/, the following error is seen:

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

    I contacted support for my host, and they said to “check with WordPress support for a in depth assistance regarding this issue” because the “issue is with the application itself and therefore it might be best to contact your website developer in order for him/her to review the files and adjust them accordingly.”

    I could not find a support email address for WordPress, so I’m hoping someone here can provide me with a quick and easy fix.

    Thanks!
    Angie

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Call to undefined function error shows you that its not getting your function where you have defined.

    Thread Starter theangiechu

    (@theangiechu)

    How would I fix this? I don’t know what this means and have never had this happen with any of my other websites. Is there a particular line of code that I need to add to the wp-blog-header.php file, and if so do you know what that would be?

    The file currently reads as follows:

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

    if ( ! isset( $wp_did_header ) ) {

    $wp_did_header = true;

    // Load the WordPress library.
    require_once __DIR__ . ‘/wp-load.php’;

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

    // Load the theme template.
    require_once ABSPATH . WPINC . ‘/template-loader.php’;

    }

    • This reply was modified 4 years, 2 months ago by theangiechu.
    Anonymous User 18274256

    (@anonymized-18274256)

    Hi @theangiechu,

    I think this link may help you: https://wordpress.stackexchange.com/questions/25758/how-to-fix-this-this-error-fatal-error-call-to-undefined-function

    Regards,

    • This reply was modified 4 years, 2 months ago by Anonymous User 18274256.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sudden Fatal Header Error’ is closed to new replies.