WordPress.org

Ready to get started?Download WordPress

Forums

Problem Installing WP Theme (14 posts)

  1. ctate1
    Member
    Posted 8 years ago #

    When I install a theme designed for WordPress, I get this error message: "Fatal error: Call to undefined function: get_header() in /home/webmentor/www/www/index.php on line 1"

    I have tried this several times, each time with a theme I picked up through the WP website. WP works fine with the theme that was incorporated in the original installation.

  2. lovelylovely
    Member
    Posted 8 years ago #

    exactly same problem with me
    as i installed WP for the very first time but when i uploaded theme files on site and try opening site this message comes up

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

    Site is http://www.PokerTipping.com

    can any one please Help Both of us out
    I hope there are lots of Lovely People out there who would love to help us

  3. yosemite
    Member
    Posted 8 years ago #

    Both of you broke the index.php. At that level in your wp installation the index.php should only contain:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    No get_header(). I suggest you replace whatever's there with the correct one from the installation zip.

  4. lovelylovely
    Member
    Posted 8 years ago #

    I browsed around and found the way to do it :)
    Hey "ctate1" i will tell u how its done

    once u unzip a theme on ur PC , just upload the folder (along with all files in it) to ur Root>>wp-content/themes directory.

    once u finish uploading it

    just log in to ur sites admin panel and click Presentation and u will see the Theme Thumbed image there, click on it to install

    thats it ,

  5. lovelylovely
    Member
    Posted 8 years ago #

    i didn't broke it infact upload the them files on root
    so it replaced index.php file now all sorted out

    hoping for a bright future in blogging LOL

    See the new theme there http://www.PokerTipping.com

  6. yosemite
    Member
    Posted 8 years ago #

    i didn't broke it infact upload the them files on root
    so it replaced index.php file now all sorted out

    Musta been someone else... A burglar!

  7. lovelylovely
    Member
    Posted 8 years ago #

    heheheh

    i meant was not my intention :)

  8. lovelylovely
    Member
    Posted 8 years ago #

    but Yosemite deserve a BIG THANKS really

    for atleast looking here and trying to help us

    Thanks buddy

  9. yosemite
    Member
    Posted 8 years ago #

    Welcome!

  10. smk2004
    Member
    Posted 7 years ago #

    Um - I'm having same problems but haven't found how you guys resolved it. When you say login to your site admin (which I did) and look for presentation - I do not see presentation! Can some one please help. I just want to design my own wordpress theme and be able to view it properly!

  11. moshu
    Member
    Posted 7 years ago #

    lovelylovely treats the terminology too freely...

    If you have a website hosted - the host usually offers some kind of site administration panel, like cPanel, Plesk etc.

    This is NOT the same as your (WP) blog's admin panel! And the "Presentation" menu is in the WP admin panel, not in the site admin panel.
    So, login to your blog > and you will see the Presentation menu.

    Now, if you seriously want to get into the theme design business... you should forget the online editor, just design your theme offline, upload it, select it in the Presentation and you are good to go.

    Reading:
    http://codex.wordpress.org/Using_Themes#Adding_New_Themes
    http://codex.wordpress.org/Theme_Development
    See also the possibility of installing it locally for design purposes: http://codex.wordpress.org/Getting_Started_with_WordPress#Installation

  12. smk2004
    Member
    Posted 7 years ago #

    Hi Moshu! Thanks so much! It worked!!!

  13. smk2004
    Member
    Posted 7 years ago #

    Oh one more question... How can you preview your design offline? I try and I get error...

  14. moshu
    Member
    Posted 7 years ago #

    It depends what do you mean by "offline"?
    Yes, I have a local installation on my computer here and I can preview all my design.
    Otherwise it's impossible.

    If you want to upload a theme to your online installation AND seeing it without letting the visitors to know about its existence - use the Preview Theme plugin:
    http://codex.wordpress.org/Plugins/Admin_Tools

Topic Closed

This topic has been closed to new replies.

About this Topic