Support » Fixing WordPress » “Call to undefined function” though using wp-blog-header

  • Hello,

    I thought I was trying to implement a very simple static page but couldn’t make it work. Duh…

    I keep getting the error message “Call to undefined function…”.

    I browsed the support forum and according to specialists the best way to have a static page using WP functions is to add a require to wp-blog-header.php. Which I did :

    <link rel="stylesheet" href="" type="text/css" media="screen" />
    <?php define('WP_USE_THEMES', false);

    I also added a line before endif in wp-blog-header.php to verify whether it was loaded or not:
    echo "include blog-header done!";

    But I only get this frustrating message on my page:

    include blog-header done!
    Fatal error: Call to undefined function: bloginfo() in on line 12

    What did I miss?
    Thanks for any cue or comment that would send me on the right path… 🙂

  • The topic ‘“Call to undefined function” though using wp-blog-header’ is closed to new replies.