Title: Uncaught Error: Call to undefined function get_header() No Code Change
Last modified: September 10, 2016

---

# Uncaught Error: Call to undefined function get_header() No Code Change

 *  Resolved [Duncan McClean](https://wordpress.org/support/users/duncanamcclean/)
 * (@duncanamcclean)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-get_header-no-code-change/)
 * Hello,
 * I’m rebuilding a website for someone and making a theme from scratch, I wanted
   to add some code in the footer.php file so I did then I FTPed the theme back 
   accross and I get the following error.
 *     ```
       Fatal error: Uncaught Error: Call to undefined function get_header() in /homepages/24/d634280769/htdocs/tynronglenshaw.com/dev/index.php:9 Stack trace: #0 {main} thrown in /homepages/24/d634280769/htdocs/tynronglenshaw.com/dev/index.php on line 9
       ```
   
 * I have looked inside the index.php file in my theme and nothing has been changed.
   I have also looked at header.php but again nothing changed. The last code edits
   I made to those files were a few days ago.
 * I removed the code that I put into the footer.php. I don’t know why it’s not 
   working.
 * Duncan

Viewing 1 replies (of 1 total)

 *  Thread Starter [Duncan McClean](https://wordpress.org/support/users/duncanamcclean/)
 * (@duncanamcclean)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-get_header-no-code-change/#post-8166844)
 * Seems to be fixed now, All I changed was replaced the index.php file within WordPress
   itself.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught Error: Call to undefined function get_header() No Code Change’
is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Duncan McClean](https://wordpress.org/support/users/duncanamcclean/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-get_header-no-code-change/#post-8166844)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
