Title: Need help with header error message
Last modified: August 18, 2016

---

# Need help with header error message

 *  Resolved [timediva](https://wordpress.org/support/users/timediva/)
 * (@timediva)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/)
 * I doing a total makeover of an older site and want to do
    it using WP and make
   a static home page.
 * I’m using the current version of WP 2.0.3 and theme Andyblue-ver-1
 * I went to Codex and read how to create an upload a static
    Font Page.
 * I put WP it in a seperate directory – /internetbusiness
 * I got everything installed and working
    [http://www.ebusinesshelpsite.com/internetbusiness](http://www.ebusinesshelpsite.com/internetbusiness)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I followed the instructions in
   Intergrating WordPress.
 * Created a test static page and saved it as main.php
 * I put the following code on the page – main.php
 * <?php
    define(‘WP_USE_THEMES’, false); require(‘./internetbusiness/wp-content/
   themes/andyblue-ver-1/header.php’); get_header(); ?> <?php get_left-sidebar.php();?
   > <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”5″> <tr> <td>Welcome
   to my home page</td> </tr> </table> <?php get_right-sidebar.php(); ?> <?php get_footer.
   php(); ?>
 * I upload the page
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When I go to
   the page [http://www.ebusinesshelpsite.com/main.php](http://www.ebusinesshelpsite.com/main.php)
 * I get this error message
 * Fatal error: Call to undefined function: bloginfo() in /home/xxxxx/public_html/
   internetbusiness/wp-content/themes/andyblue-ver-1/header.php on line 11
 * Line 11 on the header.php
    <title><?php wp_title(”); ?><?php if(wp_title(”, false)){
   echo ‘ – ‘;} ?><?php bloginfo(‘name’); ?></title>
 * Can’t figure what I did wrong. I misinterpret the instruction so how… I’m not
   a programmer and know very very little php.
 * Thanks
    Ann
 * PS.
    I also tried the apache configuration and it does make main.php the static
   home page for the site… but still get the same error message
 * PSS
    I also save the page as default, home etc. and I still get the error message.

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

 *  [silpstream](https://wordpress.org/support/users/silpstream/)
 * (@silpstream)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423321)
 * You made a small mistake and didn’t include the’wp-blog-header.php’ file into
   the top of your page. You included your template header file which is wrong. 
   You need to have this in their in order for your static page to be able to use
   functions like wp_title().
 * Go back to [http://codex.wordpress.org/Creating_a_Static_Front_Page](http://codex.wordpress.org/Creating_a_Static_Front_Page)
   and read the ‘Include the Header’ section.
 * Hope that helps!
 *  Thread Starter [timediva](https://wordpress.org/support/users/timediva/)
 * (@timediva)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423329)
 * That helped… now the header showing…thanks
 * but I’m getting this error now
    [http://www.ebusinesshelpsite.com/main.php](http://www.ebusinesshelpsite.com/main.php)
 * Fatal error: Call to undefined function: sidebar() in /home/xxxxx/public_html/
   main.php on line 4
 * Line 4 is:
    <?php get_left-sidebar(); ?>
 * This is a 3 column templates…
 * Then I tried
    <?php require(‘./internetbusiness/wp-content/themes/andyblue-ver-
   1/left-sidebar.php’); get_left-sidebar(); ?>
 * And part of the left side bar shows up but I still get the above error message.
 * Is there something I need to code different for the sidebars to show?
 * This is a 3 column template
    left-sidebar.php right-sidebar.php
 * Thanks
    Ann
 * PS
    Here is the code right now for main.php
 * <?php
    define(‘WP_USE_THEMES’, false); require(‘./internetbusiness/wp-blog-header.
   php’); get_header(); ?> <?php require(‘./internetbusiness/wp-content/themes/andyblue-
   ver-1/left-sidebar.php’); get_left-sidebar(); ?> <table width=”100%” border=”
   0″ cellspacing=”0″ cellpadding=”5″> <tr> <td>Welcome to my home page</td> </tr
   > </table> <?php get_right-sidebar(); ?> <?php get_footer(); ?>
 *  Thread Starter [timediva](https://wordpress.org/support/users/timediva/)
 * (@timediva)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423331)
 * After playing around with it a little more… I finally got it work.
 * Thanks
 * Ann
 *  [silpstream](https://wordpress.org/support/users/silpstream/)
 * (@silpstream)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423333)
 * Try using this instead:
    ——————————— <?php define(‘WP_USE_THEMES’, false); require(‘./
   internetbusiness/wp-blog-header.php’); get_header(); include(‘./internetbusiness/
   wp-content/themes/andyblue-ver-1/left-sidebar.php’); include(‘./internetbusiness/
   wp-content/themes/andyblue-ver-1/right-sidebar.php’); ?> <table width=”100%” 
   border=”0″ cellspacing=”0″ cellpadding=”5″> <tr> <td>Welcome to my home page</
   td> </tr> </table> <?php get_footer(); ?> ————————————- That should fix it… I
   think… lol…
 * Let us know if there are problems after this. If there aren’t any problems, please
   come back and mark the post as resolved.
 *  Thread Starter [timediva](https://wordpress.org/support/users/timediva/)
 * (@timediva)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423335)
 * Thanks… that’s a little cleaner than my solution and it works.

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

The topic ‘Need help with header error message’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [timediva](https://wordpress.org/support/users/timediva/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/need-help-with-header-error-message/#post-423335)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
