Support » Fixing WordPress » Call to undefined function get_header() i

  • Resolved imprimisxo

    (@imprimisxo)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Call to undefined function get_header() i’ is closed to new replies.