Fatal error: Call to undefined function get_header() in /home

by Giggle
1 replies
Please help. I am getting a fatal error when I try to install a free wordpress theme.

The theme had several files including index.php . I uploaded all the files to folder on my server and got the following error

Fatal error: Call to undefined function get_header() in /home/pxxxxxx/public_html/xxx.info/theme1/index.php on line 1

When I Look at the index.php I see the following

<?php get_header(); ?>
<div class="art-content-layout">
<div class="art-content-layout-row">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?><div class="art-layout-cell art-content">

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="art-post">
<div class="art-post-body">
<div class="art-post-inner art-article">
#call #error #fatal #function #getheader #or home #undefined
  • Profile picture of the author Istvan Horvath
    home/pxxxxxx/public_html/xxx.info/theme1/index.php
    That tells clearly you uploaded the theme to the wrong place!

    EVERY ttheme MUST be uploaded under example.com/wp-content/themes/ into its own directory; e.g.:

    example.com/wp-content/themes/twentyten/
    example.com/wp-content/themes/theme1/
    example.com/wp-content/themes/whatever-your-theme-name-is/
    Signature

    {{ DiscussionBoard.errors[3225353].message }}

Trending Topics