Title: edited classic&#8217;s index.php now &#8220;undefined function: get_header()&#8230;&#8221;
Last modified: August 19, 2016

---

# edited classic’s index.php now “undefined function: get_header()…”

 *  [dooderose](https://wordpress.org/support/users/dooderose/)
 * (@dooderose)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/edited-classics-indexphp-now-undefined-function-get_header/)
 * I can’t find an answer to this anywhere. I tried changing this tiny thing in 
   my Classic’s theme index.php file: “<?php
    get_header(); ?>” I obviously don’t
   know what I’m doing, but I knew that I needed to change it back when my edit 
   didn’t work. This gave me this errorwhen trying to visit my site (although I 
   can access my admin panel):
 * “Fatal error: Call to undefined function: get_header() in /home/content/T/r/a/
   Tracierose/html/index.php on line 2” . Thinking that maybe I missed something,
   I uploaded the back up that I have of this file with the same results.
 * Not sure what else to do. Maybe I changed the wrong index.php file and need to
   change it back?

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

 *  Thread Starter [dooderose](https://wordpress.org/support/users/dooderose/)
 * (@dooderose)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/edited-classics-indexphp-now-undefined-function-get_header/#post-949122)
 * Okay, I really think I lost the whole thing and I’m starting to panic! Is there
   any possible solution for this?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/edited-classics-indexphp-now-undefined-function-get_header/#post-949123)
 * LOOK at your error?
 * you edited the wrong file.
 * /home/content/T/r/a/Tracierose/html/index.php <– thats NOT a theme file.
 * Go download wordpress from the download page .. See the BIG orange-red link at
   the top of this page???
 * unpack the zip
 * upload a new UNEDITED index.php — taking note that it is going to be the one 
   thats inside the folder that contains readme.html and that it needs to be uploaded
   to the directory that contains your wp-config.php
 *  Thread Starter [dooderose](https://wordpress.org/support/users/dooderose/)
 * (@dooderose)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/edited-classics-indexphp-now-undefined-function-get_header/#post-949124)
 * Okay, I was able to replace most of the files by upgrading everything besides
   my content. It seemed to work! If anyone has a similar problem, maybe this is
   your solution.

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

The topic ‘edited classic’s index.php now “undefined function: get_header()…”’ is
closed to new replies.

## Tags

 * [Classic theme](https://wordpress.org/support/topic-tag/classic-theme/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dooderose](https://wordpress.org/support/users/dooderose/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/edited-classics-indexphp-now-undefined-function-get_header/#post-949124)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
