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
https://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
https://www.ebusinesshelpsite.com/main.phpI 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
AnnPS.
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 messagePSS
I also save the page as default, home etc. and I still get the error message.
- The topic ‘Need help with header error message’ is closed to new replies.