Title: Error: Call to undefined function get_header() &amp; syntax error
Last modified: August 19, 2016

---

# Error: Call to undefined function get_header() & syntax error

 *  [intobattle](https://wordpress.org/support/users/intobattle/)
 * (@intobattle)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-get_header-syntax-error/)
 * Hi all,
 * I’ve spent hours looking through the Support forums trying to find an answer 
   to this and after following a few suggestions I just can’t manage to get this
   problem fixed.
 * Currently my site is actually working and can be viewed okay in Firefox and IE8
   and IE7, but the error consoles for each are showing two issues.
 * The two errors I’m getting are as follows:
 *     ```
       Error: syntax error Source File: http://mydomain.com Line: 1 Source Code: <!DOCTYPE html>  
   
       Error: missing ; before statement Source File: *rootpath*/wp-content/themes/rushlondon/ Line: 2, Column: 3 Source Code: <b>Fatal error</b>:  Call to undefined function get_header() in <b>*rootpath*\wp-content\themes\rushlondon\index.php</b> on line <b>16</b><br />
       ```
   
 * The theme itself is TwentyTen tweaked, and I’ve been back to the original code
   to compare what I’ve changed and what the possible problem could be but I can’t
   see anything obvious. I’ve also tried disabling all plugins, so I know for sure
   it’s my theme.
 * Any help would be most appreciated! (URL isn’t available at the moment as I’m
   working off an edited hosts file!)
 * Thanks!

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

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [intobattle](https://wordpress.org/support/users/intobattle/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-get_header-syntax-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
