• I am getting the following error when I try to access my site.

    Fatal error: Call to undefined function: get_header() in /homepages/5/d144482141/htdocs/wp-content/themes/blix/index.php on line 1

    Any idea what is causing this and how I can fix it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Make sure your index.php file in your blog’s root directory doesn’t say much more than this:

    <?php
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    Thread Starter seanbrendan

    (@seanbrendan)

    The index.php file in my root directory contains the below:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    What else can I try?

    Seems that something is seriously broken, cause I get the above error message even if try to access any other page or even file on your site. This includes files that aren’t on your server! No 404 error message!

    Maybe you have a broken .htaccess file in your servers root? Just a guess.

    Thread Starter seanbrendan

    (@seanbrendan)

    any recommendations on how to tell for sure? and if it is the .htaccess how would I replace/fix this?

    Make a backup of your .htaccess and after that delete inside of the root dir of your homepage. Please provide some more information: First time install? Host, PHP version, WP version.

    If all else fails, a new clean installation may help (if this is an option for you).

    Thread Starter seanbrendan

    (@seanbrendan)

    i first installed in early Nov.

    My host is 1&1

    I’m pretty sure I’m using the php version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error message’ is closed to new replies.