Viewing 5 replies - 1 through 5 (of 5 total)
  • What did you change in the index file? Can you post it?

    I don’t think that you should have changed the index.php file, just used the options in WP.

    You can always just redirect from your domain root (yourdomain.com/) to the home of your blog using meta refresh or apache config.

    A quick fix might be to write over your index.php file with the original and try again.

    Rob

    Thread Starter ledshaka

    (@ledshaka)

    Rob, thanks for replying. Here’s the substance of my index.php file:

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

    Also, there’s no .htaccess file in my version WordPress folder. Is that normal? These are likely ultra-mundane, low-level questions but I just learning here. Thanks again.

    There is no .htaccess in the WordPress root by default.

    A quick workaround is to remove the index file that you created in your domain root and replace the original in the blog directory, then use the following index file to redirect to your blog (uploaded in your root):

    <HTML>
    <HEAD>
    <meta http-equiv="refresh" content="0;url=https://www.yourdomain.com/blog_address">
    </HEAD>
    <BODY>
    <p>connecting...</p>
    </BODY>
    </HTML>

    Rob

    Thread Starter ledshaka

    (@ledshaka)

    Rob, thanks for the help. As suspected the main problem was a user error, namely = I’m an idiot. The change that I made to the index.php file as per the WordPress guidelines was correct. I failed, however, to move the file to my root directory. I just kept uploading it to the same folder at my domain. So, all you fellow noobs out there with a similar error message, be sure you’ve actually moved the file to the root. It’s a totally logical thing. You’re trying to get the webpage loaded at the main domain name. Well, there needs to be some information to guide the browser, i.e., your index.php file.

    Again, I appreciate Rob’s pitching in with what also would have worked.

    I understand your pain! Often the simplest solution is to look at where the ftp is pointing…

    I’ve since introduced the way you’ve done the index to one of my sites – removing the html file workaround with the meta refresh.

    Thanks
    Rob

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when loading homepage’ is closed to new replies.