Title: Error using  index.php page not working
Last modified: August 21, 2016

---

# Error using index.php page not working

 *  [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * (@skyblue1280)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/)
 * Hello, I am using wordpress with Xamp and this error has happened.
 * Fatal error: Call to undefined function get_header() in C:\xampp\htdocs\wordpress\
   index.php on line 10
 * I tried to alter the sidebar and saved it in filezilla then this error comes 
   up so I ended up undoing what I did in note pad. It still not working. Any ideas.
   I’m very new to this. Thanks
    <?php
 * /**
    * Index main page * * [@package](https://wordpress.org/support/users/package/)
   SimpleMarket * @subpackage Template * [@since](https://wordpress.org/support/users/since/)
   SimpleMarket 1.0 */ ?> <?php get_header(); ?>
 * <section id=”content” role=”main”>
    <?php while ( have_posts() ) : the_post();
   get_template_part( ‘content’, get_post_format() ); endwhile; simplemarket_pagination();?
   > </section>
 * <?php get_sidebar(); ?>
 * <?php get_footer() ?>

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758250)
 * Can you show us the code that you had edited and then tell us exactly what you
   did?
 *  Thread Starter [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * (@skyblue1280)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758252)
 * I removed the sidebar but undone the changes so it went back it’s original code.
   Not sure what to do. Everything is the same as when it was working Any ideas 
   what it can be?
 *  Thread Starter [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * (@skyblue1280)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758255)
 * I can other wordpress site and the code for the index is exactly the same not
   changed any other folders too
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758261)
 * This may help: [http://fixmycms.com/fatal-error-call-to-undefined-function-get_header-in-index-php-on-line-1/](http://fixmycms.com/fatal-error-call-to-undefined-function-get_header-in-index-php-on-line-1/)
 *  Thread Starter [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * (@skyblue1280)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758276)
 * Hey thank you for your help, it didn’t work 🙁 I just don’t understand why it
   isn’t working. All my folders are the same as they were before and the code is
   the same as it was before. I haven’t installed any plugins since so not sure.
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758310)
 * I found this thread that may help you. [http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-get_header-10?replies=7](http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-get_header-10?replies=7)
 *  Thread Starter [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * (@skyblue1280)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758453)
 * Hello, Nothing seems to be working. Do you think I need to reinstall wordpress
   again? Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error using index.php page not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [skyblue1280](https://wordpress.org/support/users/skyblue1280/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/error-using-headerphp-page-not-working/#post-4758453)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
