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

---

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

 *  [illegalprelude](https://wordpress.org/support/users/illegalprelude/)
 * (@illegalprelude)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-php-fatal-error-call-to-undefined-function-get_header/)
 * Hey everyone, I’ve been getting the following error on my logs side:
 * [17-Feb-2012 15:00:11] PHP Fatal error: Call to undefined function get_header()
   in /home7/sonyrumo/public_html/wp-content/themes/Gadget/index.php on line 1
 * And it might pop up 20 times in a row. Now in my index reads as follows:
 *     ```
       <?php ini_set('display_errors', 0); ?>
       <?php get_header(); ?>
   
       	<div id="feature">
       	<!-- Feature area prev/next buttons -->
       	<a id="prev" href="#"></a>
       	<a id="next" href="#"></a>
       		<div id="feature-slides" class="clearfix">
       ```
   
 * I’ve also checked and my theme is installed here:
    sonyrumors.net/wp-content/
   themes/Gadget
 * Which seems like the right place. I’ve read a few times to make sure of this 
   and so that seems right. Any ideas?

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

 *  [RichardWPG](https://wordpress.org/support/users/richardwpg/)
 * (@richardwpg)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/error-php-fatal-error-call-to-undefined-function-get_header/#post-2580562)
 * go in thru FTP and delete your theme. It seems that the theme is giving you problems.
 *  Thread Starter [illegalprelude](https://wordpress.org/support/users/illegalprelude/)
 * (@illegalprelude)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/error-php-fatal-error-call-to-undefined-function-get_header/#post-2580636)
 * But let me ask you this Richard, it’s obviously saying there is an issue with
   line 1. When I check the theme file that I would be basically uploading again,
   the line 1 is identical so is there a point to uploading the theme again? (Reason
   I’m hesitant is that I modified some of the code months ago so different colors
   appear for menus and what not and don’t want to go through and redo that, if 
   it’s all in vain).

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

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

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [illegalprelude](https://wordpress.org/support/users/illegalprelude/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/error-php-fatal-error-call-to-undefined-function-get_header/#post-2580636)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
