• Resolved skandar

    (@skandar)


    I’ve installed wordpress on the root directory of my site and for some reason I can’t view my blog and get the error message
    Fatal error: Call to undefined function have_posts() in /home/skandar/public_html/index.php on line 5

    I tried reinstalling it and got the same error message so I tried installing it into a directory, which worked when I went to the index of that directory but I tried following the instructions to display it in the root directory which is where I want the blog to be, but still got that same error.

    How can I fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • you didnt upload the files right, from the looks of that message. Look to see what is inside this file:

    /home/skandar/public_html/index.php

    The only thing that ought to be in it is this:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    You have one of your theme’s index.php files there instead of what ought to be there.

    You need to upload the files in the same way that they are unzipped, maintaining the directory structure.

    Thread Starter skandar

    (@skandar)

    Ah I can see where I went wrong now, thank you!

    I have the same. I uploaded the files in the same way that they are unzipped, in the same structure. But still I get the same error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error message function have_posts() can’t view blog’ is closed to new replies.