Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/04/2012, 16:19
l20
 
Fecha de Ingreso: abril-2012
Mensajes: 2
Antigüedad: 12 años
Puntos: 0
Fatal error php get_header()

Buenas tardes por favor necesito de su ayuda y de sus conocimientos miren he bajado algunas planillas web en la cual esta hecha en php pero al querer ejecutar su contenido con el servidor xampp me sale este error:

Fatal error: Call to undefined function get_header() in C:\xampp\htdocs\uptodatepittsburgh\index.php on line 1 traducido

Traduccion error fatal: funcion no definida get_header()


he tratado de ver el manual de php y dice que en realidad se escribe het_headers()
pero al poner eso en ves de get_header() me sale el siguiente error:


Warning: get_headers() expects at least 1 parameter, 0 given in C:\xampp\htdocs\uptodatepittsburgh\index.php on line 1

Fatal error: Call to undefined function get_sidebars() in C:\xampp\htdocs\uptodatepittsburgh\index.php on line 5

alguien me podria ayudar por favor
dejo el codigo fuente de index.php

<?php get_headers();
?>
<!-- container start -->
<div id="container" class="clearfix">
<?php get_sidebars(); ?>
<!-- content start -->
<div id="content" class="clearfix">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post">
<h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postmetadata">Posted in <?php the_category(', ') ?> | <?php the_time('F jS, Y') ?></div>
<div class="entry"><?php the_content('[...]'); ?></div>
<div class="endline"></div>
<?php the_tags('<p class="tags"><strong>Tags:</strong> ', ', ', '</p>'); ?>
<div class="bookmark"><?php include(TEMPLATEPATH . '/bookmark.php'); ?></div>
<div class="read_comments"><a href="<?php comments_link(); ?>">Read User's Comments<span>(<?php comments_number('0','1','%'); ?>)</span></a></div>
<?php if ( $user_ID ) : ?>
<div class="edit_post"><?php edit_post_link(__('Edit this post')); ?> (Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>)</div>
<?php endif; ?>
<div class="post_bottom"></div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="wp-pagenavi">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
<?php } ?>
<?php else : ?>
<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
<?php endif; ?>
</div>
<!-- content end -->
</div>
<!-- container end -->
<?php get_footer(); ?>