• Resolved runnerme

    (@runnerme)


    I tried to edit my index.php file on my mimbo theme and it didn’t work so I undid the change without realising there where 2 of these stored in differnet areas so re-uploaded the original for the theme and replaced both now get the following error

    Call to undefined function: get_header() in/home/content/a/index.php on line 1

    I don’t have a back up but can log in to admin and all the posts are there any suggestions how I rectify any help appreciated
    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • MichaelH

    (@michaelh)

    Upload a new theme. See Using Themes for info and if necessary download the WordPress zip from the Download tab above and reupload the wp-content/themes folder.

    Thread Starter runnerme

    (@runnerme)

    Have uploaded a new theme no joy so downloaded wordpress and reuploaded themes folder to WP-content but same error. Any other sugestions ?

    MichaelH

    (@michaelh)

    Link to see problem, please.

    “Call to undefined function: get_header() in/home/content/a/index.php on line 1”

    Also might rename the index.php file and upload another from the WordPress distribution via the Download tab at the top of this screen.

    Thread Starter runnerme

    (@runnerme)

    MichaelH

    (@michaelh)

    The index.php in your web-root folder should be this:

    <?php
    /**
     * 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 */
    require('./wp-blog-header.php');
    ?>

    And you’ve reuploaded files including wp-blog-header.php?

    Thread Starter runnerme

    (@runnerme)

    The index in the route was the wrong one it was the one from my theme have deleted it and uploaded the correct one you said it works. Fantastic thanks for your help most appreciated

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Call to undefined function: get_header() in / index.php’ is closed to new replies.