• Iw as hoping maybe someone might have come across a similar situation. I was updating my theme and on autopilot when I realized that I had thrown all the file into the Root directory. bad move on my part. After sifting through them and removing them, the site seemed find but I am using WP Supercache so I most likely didn’t see the changes.

    After a while, I started receiving this error: “Fatal error: Call to undefined function get_header() in”

    Realizing that I had placed the theme Index.php file in the root, I quickly did a full re-install of WordPress to make sure there were no other culprits. I also re-installed the theme as well. The tree structure in the root directory looks just like WordPress. Problem, however, still remains. I thought I was getting a cached version so I deactivated all plugins and deleted the WP Supercache’s current cache. I switched the theme to Twenty Eleven basic the and I still get the same Error.

    The Index.php file in my root directory matches that of the current WordPress file and everything looks fine but I still am getting the Error and I am a bit stumped as to where this would be coming from or why given that I am using the WordPress theme twenty eleven.

    Just thought I would ask to see if anyone else had a similar issue in the past and if they could share some wisdom. Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you moved your theme index.php to the root dir, you probably overwrote the one that was there. Try re-uploading everything except wp-content and see if that fixes it.

    Thread Starter worklogik

    (@worklogik)

    Unfortunately I have already uploaded a fresh copy of WordPress with the correct Index.php file. In WP-content, I replaced the Index file in there as well as the themes and plugins. I installed a fresh copy of my normal theme as well. I have since, switched to the Twenty Eleven theme just to see if I could get it working.

    The Index.php file in the root is correct now but still I have this error.

    Thread Starter worklogik

    (@worklogik)

    I’m stumped. All new wordpress install and files, no caching, all plugins deactivated and still getting the Error. Anyone else seen something like this before?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Index file and Headers’ is closed to new replies.