Title: fatal error in index.php
Last modified: August 19, 2016

---

# fatal error in index.php

 *  [phbrowne](https://wordpress.org/support/users/phbrowne/)
 * (@phbrowne)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-in-indexphp/)
 * I am getting the following error message:
 * Fatal error: Call to undefined function get_header() in /home/phbrowne/public_html/
   phbrowne.com/index.php on line 1
 * *****************************
 * Here is my setup:
 * WordPress files are located in:
    /public_html/phbrowne.com/wp-content/themes/
   THEMEFOLDERS/FilesThatCameWithThemes
 * phbrowne.com is an additional domain which is hosted by webhostingpad.com. The
   WordPress install was done via Fantastico Deluxe.
 * I assume that this is a question of pointing things in the right direction, but
   I am new to WordPress.
 * ***************************
 * Here is the index.php file
 * <?php get_header(); ?>
    <div id=”page”><div id=”content”><?php if (have_posts()):?
   > <?php while (have_posts()) : the_post(); ?> <div class=”post” id=”post-<?php
   the_ID(); ?>”> <div class=”post-date”><span class=”post-month”><?php the_time(‘
   M’) ?></span> <span class=”post-day”><?php the_time(‘d’) ?></span></div><h2>”
   rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title();?
   ></h2> <span class=”post-cat”>Topic: <?php the_category(‘, ‘) ?>**|** <?php edit_post_link(‘
   Edit’,”,’**|**‘); ?></span> <span class=”post-comments”><?php comments_popup_link(‘
   No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></span> <div class=”entry”>
   <?php the_content(‘Read the rest of this entry »’); ?></div></div>
 * <?php endwhile; ?>
    <div class=”navigation”><span class=”previous-entries”><?
   php next_posts_link(‘Previous Entries’) ?></span> <span class=”next-entries”>
   <?php previous_posts_link(‘Next Entries’) ?></span></div> <?php else : ?><h2 
   class=”center”>Not Found</h2> <p class=”center”>Sorry, but you are looking for
   something that isn’t here.</p> <?php endif; ?></div> <?php include(TEMPLATEPATH.”/
   right_sidebar.php”);?> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
 * ****************************************
 * The index.php file (that I assume is being called) is located here:
 * /public_html/phbrowne.com/index.php
 * *****************************************
 * What I am guessing is happening is that the index.php file located in the phbrowne.
   com directory is the one being called. Since the file I *really* want to be called
   is actually located here:
 * /public_html/phbrowne.com/wp-content/themes/THEMEFOLDERS/index.php
 * the correct file is never being navigated to.
 * Now…how do I fix this?
 * Thanks in advance for any assistance you can give!

The topic ‘fatal error in index.php’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [theme folder](https://wordpress.org/support/topic-tag/theme-folder/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [phbrowne](https://wordpress.org/support/users/phbrowne/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-in-indexphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
