Title: Call to undefined function: get_header()
Last modified: August 18, 2016

---

# Call to undefined function: get_header()

 *  [Rod](https://wordpress.org/support/users/rod/)
 * (@rod)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header/)
 * Fatal error: Call to undefined function: get_header() in /home/rbn/www/wordpress/
   index.php on line 1
 * What to do ? I don’t know where is the problem 🙁 The problem stay the same even
   if I change the theme 🙁

Viewing 1 replies (of 1 total)

 *  [Bryan Davis](https://wordpress.org/support/users/tptboy/)
 * (@tptboy)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header/#post-446346)
 * Looks like you’ve accidentally uploaded your theme’s `index.php` file to the 
   root of your site, rather than the `wp-content/themes` directory.
 * Upload a copy of the index.php from the top-level of the wordpress folder to 
   your site root and see if this does the trick.

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function: get_header()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Bryan Davis](https://wordpress.org/support/users/tptboy/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header/#post-446346)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
