Forums

PHP Fatal Error - but site works? (5 posts)

  1. Jinsan
    Member
    Posted 7 years ago #

    I get this in my error_log within the theme quite often:

    [15-Mar-2005 18:44:48] PHP Fatal error: Call to undefined function: get_header() in /pathtomywordpress/wp-content/themes/meadow/index.php on line 1

    I don't know why it does that, but I do know that the site works. I;m trying to source the problem or find a solution but not sure where to look. Could this have something to do with custom php templates? If how should I fix it?

    Line 1 says get header as above in the index.php file so is it not supposed to be there?

    Hope someone can help. Thanks

  2. vkaryl
    Member
    Posted 7 years ago #

    That line's not on the index.php of any of the themes I use. Take it out, see what happens?

  3. Jinsan
    Member
    Posted 7 years ago #

    What happens is that I lose all the styling. Anyone else or other ideas?

    EDIT: Changed it to: <?php include('header.php'); ?> Seems to have resolved it..we'll see

  4. vkaryl
    Member
    Posted 7 years ago #

    Well, that was pretty conclusive! Yes, I do have the header.php line. Hmm. I think I remember something about "deprecated" calls, and that may have been included. As usual, when I need to find something, I can't come up with a keyword the search function likes.

  5. Jinsan
    Member
    Posted 7 years ago #

    Great, well now I get a further error telling me this:

    [15-Mar-2005 23:28:05] PHP Fatal error: Call to undefined function: bloginfo() in path/wp-content/themes/meadow/header.php on line 7

    It's telling me bloginfo() is wrong too? I dont' get it, it's starting to grate. Is my install messed up?

    I checked the root of the directory and found this in it's error log:

    [15-Mar-2005 15:43:41] PHP Warning: main(): Failed opening '/path/wordpress/wp-includes/class-IXR.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/wordpress/xmlrpc.php on line 7
    [15-Mar-2005 15:43:41] PHP Fatal error: Class wp_xmlrpc_server: Cannot inherit from undefined class ixr_server in /path/wordpress/xmlrpc.php on line 61

    Where is all this coming from and why would it be happening?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.