WordPress.org

Ready to get started?Download WordPress

Forums

Index Page Overriding Page Templates (2 posts)

  1. bearscast
    Member
    Posted 5 years ago #

    I'm pulling my hair out on this one. Everything was working fine last night until I accidently uploaded the wrong index page to my main folder. Now my page templates don't work. They're overridden by the index.php file in my main folder.

    Using conditional comments, my Calendar page says it's using a page template, even though if it was working it would be a 2-column layout instead of 3.

    Note: the wordpress install is in the same folder.

    So my blog and test site are both located at:

    http://www.sportscastsllc.com/jay/

    And the page in question is here:

    http://www.sportscastsllc.com/jay/events/

    My Calendar page template is giving an error:

    http://www.sportscastsllc.com/jay/wp-content/themes/custom/page_calendar.php

    Fatal error: main() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php') in /homepages/32/d201789973/htdocs/SportscastsLLC/jay/wp-content/themes/custom/page_calendar.php on line 46

    Any help is appreciated. Thanks --

  2. whooami
    Member
    Posted 5 years ago #

    Fatal error: main() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php') in /homepages/32/d201789973/htdocs/SportscastsLLC/jay/wp-content/themes/custom...

    that path isnt right, and suggests to me that you uploaded the wrong index.php

    the index.php that loads wp-blog-header.php is ONLY supposed to live inside the root of your blog -- not inside any theme directories.

    Upload the proper index.php files to the proper locations, and Ill bet that error goes away.

    if not, youre going to need to explain this issue better, for me, at least.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.