Support » Fixing WordPress » Twenty Twelve Index Functions Problems

  • Resolved korywoodard


    Hi everyone!

    I’ve been having some problems with my WordPress site ( It began when I was trying to remove the ‘post author’ tag from my comments. I obviously edited the functions.php file wrong because it took me to the white screen with the fatal error notice. However, once I uploaded an unedited version of the file is was giving me more problems. I decided to try to reinstall the theme see if it would work, but it didn’t. Now I’m getting errors in the index.php file. I honestly have no idea how to work with those files, and I’m not sure what to do to fix this.

    Any and all help would be appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • 1. Deactivate all plugins.
    2. Upload an unedited version of Twenty-xxx (default) theme (if not already present).
    3. Activate theme.
    4. Test site.

    If all is well (site runs – no errors), then you are experiencing plugin/theme issues…activate a fresh unedited copy of your theme …then the plugins one at a time to find the issue…

    backup site files (first)!

    How do I deactivate the plugins if I can’t get into the back end of my site? Will I have to uninstall them via FTP?

    Yes, use an FTP tool such as FileZilla to rename each plugin folder to old-plugin_name and that theme to old-theme_name…make sure the default unedited theme is in place, load site (might have to clear browser cache)

    Okay, I changed the name on everything, cleared the browser cache, and it is still showing the error. I don’t know if it automatically activated a new theme though?

    Can you please paste here the exact error – also provide a site link…Sucuri is noting:

    <b>Fatal error</b>: Call to undefined function get_header() in <b>/home/content/92/7704892/html/index.php</b> on line <b>17</b><br />

    …it may be that you edited the index.php that is in the root of your site – please upload a fresh default unedited index.php from a download of the version of WP you have installed…to the root of your site…while doing that check that wp-config.php and .htacess files are proper…

    Also, you may have had a failed WP update…from same download, upload only the folders (and their contents) wp-includes and wp-admin (not wp-content – this is where themes and plugins are)

    My site link is and the error is: Fatal error: Call to undefined function get_header() in /home/content/92/7704892/html/index.php on line 17.

    I’ve reuploaded the folders, the index file, the function file, everything but wp-content. I still get the same error. I don’t understand how the index file can be messed up because the coding on line 17 is: get_header(); ?>

    I don’t understand why the files aren’t just replacing themselves and therefore deleting whatever error there is? I didn’t even touch the index file..

    As this was marked as resolved, please share with the community what the fix was…

    And, just an FYI, the root index.php is not what the site runs off…your site runs off the index.php file in your theme (which is why simply reverting to the default unedited theme can fix most issues)…a simple comparison of the default root index.php file and the one in place on your site would reveal they are not the same as the default one does not have a get_header call…and is only ~1KB.

    The file contains:

     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     * @package WordPress
     * Tells WordPress to load the WordPress theme and output it.
     * @var bool
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */

    Line 17 calls wp-blog-header.php (of your theme) so maybe it is missing???

    If you want to verify it is this line of code, add a comment line at the top and see the error at line 18…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Twenty Twelve Index Functions Problems’ is closed to new replies.