Title: PHP Fatal error: Call to undefined function get_header()
Last modified: August 20, 2016

---

# PHP Fatal error: Call to undefined function get_header()

 *  Resolved [stevesux](https://wordpress.org/support/users/stevesux/)
 * (@stevesux)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-get_header/)
 * I noticed that about one out of every 5 times I loaded a page, my nav bar would
   or would not be centered. I changed a million css properties trying to fix it,
   then I noticed the error_log kept updating.
 * First I was getting: PHP Fatal error: Call to undefined function get_header()
 * Every forum topic I read said that it had something to do with a corrupt install
   of wordpress. So, I did what people said. Deleted everything, put in a fresh 
   install, then uploaded my wp-config and my theme. Still the same problem.
 * So, then I thought, hey! Why not just get rid of get_header!
 * then I removed all instances of get_header()
 * the bumping nav still happened and then it was PHP Fatal error: Call to undefined
   function language_attributes()
 * after deleting that I got PHP Fatal error: Call to undefined function bloginfo()
 * obviously I can’t remove EVERY wordpress function from my wordpress install. 
   And I’ve re-installed wordpress like twice!
 * [Theme files zip](http://dreamtroit.com/files/theme.zip)
 * Also, I’ve deactivated all my plugins and get the same result.

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

 *  Thread Starter [stevesux](https://wordpress.org/support/users/stevesux/)
 * (@stevesux)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-get_header/#post-3127232)
 *  Thread Starter [stevesux](https://wordpress.org/support/users/stevesux/)
 * (@stevesux)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-get_header/#post-3127266)
 * It was a bad line of code in my header, and a bad one in my CSS
 *  [patrickd@firebranddesigns.net](https://wordpress.org/support/users/patrickdfirebranddesignsnet/)
 * (@patrickdfirebranddesignsnet)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-get_header/#post-3127535)
 * What was the code that was bad?

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

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

## Tags

 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [patrickd@firebranddesigns.net](https://wordpress.org/support/users/patrickdfirebranddesignsnet/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-get_header/#post-3127535)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
