Title: call to undefined function: get_header
Last modified: August 18, 2016

---

# call to undefined function: get_header

 *  Resolved [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/)
 * Fatal error: Call to undefined function: get_header() in /home/public_html/wp-
   content/themes/bloggingpro_mt/single.php on line 1 is the error message I’m getting
 * This is my header file
 *     ```
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
       <title><?php if ( is_home() ) { ?><? bloginfo('name'); ?>&nbsp;<?php bloginfo('description'); } else { wp_title('&nbsp;'); ?>&nbsp;by&nbsp;<? bloginfo('name'); } ?></title>
       <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
       <link rel="shorcut icon" type="image/x-ico" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
       <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
       <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/imghover.js"> </script>
       <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
       <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
       </head>
       <body> 
   
       <div id="bgcontain">
       <!-- header START -->
   
       <div class="HeaderBG">
       <div class="Header">
   
       <h1><a href="<?php echo get_option('home'); ?>/"><img src="http://mydomain.com/images/mlogo-v3.gif"></a></h1><p>
       <div class="Desc"><?php bloginfo('description'); ?><p><p></div>
   
         <div class="TopMenu">
          <ul>
            <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' . __('') . '' ); ?>
          </ul>
         </div>
   
       <div class="Search">
        <fieldset>
          <legend>Search</legend>
           <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
            <input type="text" name="s" class="keyword" />
       	 <div id="buttonsearch"><input name="submit" type="image" class="search" onmouseover="javascript:changeSty('searchIE');" onmouseout="javascript:changeSty('search');" title="Search" src="<?php bloginfo('template_url'); ?>/images/transparent.gif" alt="Search" />
       	 </div>
           </form>
         </fieldset>
       </div>
       <div class="SearchCorner"></div>
        </div>
       </div>
       <!-- header END -->
   
       <!-- container START -->
       <div class="ContainerBG">
        <div class="Container">
       ```
   
 * Been trying for hours now but keep seem to going round in circles!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/page/2/?output_format=md)

 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606199)
 * I’ve just changed the theme to the default theme and same error still occurs,
   a blank page when trying to view any posts or pages (although the posts appear
   on the index page as a preview)
 * Any suggestions.
 *  [justinratwebtek](https://wordpress.org/support/users/justinratwebtek/)
 * (@justinratwebtek)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606209)
 * Is it possible that you overwrote the default index.php with the new template’s
   index file?
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606214)
 * No Justin, just checked and the main index file is still in place.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606215)
 * where is your site, what is the url?
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606221)
 * Is this a new zip download?
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606223)
 * root – yes, it’s a new installation of 2.2
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606244)
 * I am sure its in the zip. When I use svn I get no problems.
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606258)
 * This is the url to my blog
 * [http://tinyurl.com/2b2q5o](http://tinyurl.com/2b2q5o)
 * As you can see all page,posts and cats appear blank when you click on them.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606260)
 * ok, so now im going to ask some questions …in your first post, you said
 * “Fatal error: Call to undefined function: get_header() in /home/public_html/wp-
   content/themes/bloggingpro_mt/single.php on line 1 is the error message I’m getting”
 * EXACTLY how were you bringing up that file? Like this?
 * [url removed by whooami]
 * Because thats normal.
 * I need to point that out because I think you are confusing issues, and if you
   are attempting to load files that way, it suggests to me that your trying to 
   do things the wrong way.
 * And im not going to beat aound with the bush with hiding urls either — ALL you
   need to do is ask one of the forum mods nicely that the urls be removed later
   and it will be done.
 * And yes, I realize that doesnt address the blank pages — Im merely tackling ONE
   issue at a time.
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606261)
 * OK – guess that was my mistake. I tried to load the single page to see if any
   errors were displayed after I found the individual pages wouldn’t load. I assumed
   the error was connected to the pages not being loaded.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606262)
 * ok, next question:
 * youre editing these files, I can tell by bringing up your sidebar.php.
 * Have you edited OTHER files, if so which ones?
 * —
 * additionally, this is going on:
 * [url removed by whooami]
 * blank.
    [url removed by whooami]
 * not blank.
 * do you have an index.html in the root of your web folder? remove it if you do.
   Im betting you do.
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606264)
 * No other files apart from the theme sidebar and styles.css have been edited.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606265)
 * read up.
 *  Thread Starter [tradeweb](https://wordpress.org/support/users/tradeweb/)
 * (@tradeweb)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606266)
 * thanks whooami. Is that all it was the index.html file!
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/#post-606267)
 * you deleted that index.html – and fixed.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/page/2/?output_format=md)

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/)
 * 16 replies
 * 4 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_header-1/page/2/#post-606268)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
