Fatal Error
-
I receive this error when I try to open my blog which is hosted by HostGator and I have no idea where to go to fix it. Fatal error: Call to undefined function get_header() in /home/wapatu/public_html/index.php on line 1
Here are the first lines in that file
index.php
PHP script text
——————————————————————————–<?php get_header(); ?>
<div id=”content”>
<?php include (TEMPLATEPATH . ‘/menu.php’); ?>
<?php if (have_posts()) : ?>
<?php $firstpostquery = new WP_Query(‘showposts=1’); ?>
<?php while($firstpostquery->have_posts()) : $firstpostquery->the_post(); $firstpost = $post->ID; ?>
<div class=”entry”>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<small>Written by <?php the_author() ?> on <abbr title=”<?php the_time(‘Y-m-d\TH:i:sO’); ?>”><?php unset($previousday); printf(__(‘%1$s – %2$s’), the_date(”, ”, ”, false), get_the_time()) ?></abbr> – <?php if(function_exists(‘the_views’)) { the_views(); } ?> </small>
<div class=”line”></div>
Thank you in advance for your help
- The topic ‘Fatal Error’ is closed to new replies.