WordPress.org

Forums

[resolved] Call to undefined function get_header() i (3 posts)

  1. imprimisxo
    Member
    Posted 6 years ago #

    One minute my site is working great, the next:

    Fatal error: Call to undefined function get_header() in /home/imprimis/public_html/jlancecurtis/index.php on line 1

    How do I fix this?

  2. stvwlf
    Member
    Posted 6 years ago #

    Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file.

    Download WordPress again, and take the one file, index.php from its root folder, replacing the file you now have as index.php

    It sometimes means someone has loaded an entire theme into the root WP folder, also

  3. imprimisxo
    Member
    Posted 6 years ago #

    stvwlf,

    Thank you very much! That was the cause and I guess that someone would be me.

    I FTP'd the index.php from wordpress to my root WP folder and all is well.

    Thanks again.

    Lance Curtis

Topic Closed

This topic has been closed to new replies.

About this Topic