• Resolved thefoolmonty

    (@thefoolmonty)


    When I try to load any other pages from my home page I get this message:

    Warning: require(.bllog/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage21/th/ef/oo/thefoolmonty.co.uk/public_html/bllog/index.php on line 17

    Warning: require(.bllog/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage21/th/ef/oo/thefoolmonty.co.uk/public_html/bllog/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘.bllog/wp-blog-header.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /websites/123reg/LinuxPackage21/th/ef/oo/thefoolmonty.co.uk/public_html/bllog/index.php on line 17

    So I’ve checked my index.php which is in the root folder of my hosting and it looks like this (note: the site files are all in a sub directory called bllog. I have copied the index.php and htc.access files to the root directory.

    ———————————————————————–

    <?php
    /**
    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require(‘./bllog/wp-blog-header.php’);
    ?>

    ———————————————————————–

    I cannot understand what has happened as my site worked last night?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Just a guess but did you originally install WP in a sub-folder called blog? And then use Giving_WordPress_Its_Own_Directory
    to allow WP to take over the root domain? If so, I think there’s a typo in your root index.php file:

    .bllog/wp-blog-header.php

    should be:

    ./blog/wp-blog-header.php

    Thread Starter thefoolmonty

    (@thefoolmonty)

    No, the misspelling of bllog was deliberate.

    Thanks though.

    In that case, try:

    ./bllog/wp-blog-header.php

    Thread Starter thefoolmonty

    (@thefoolmonty)

    Thanks again,

    I’ve tried that but it didn’t work at all.

    So file is now:

    require(‘./bllog/wp-blog-header.php’)

    It still loads the home page but none of the others?

    Cheers

    Did you originally install WP in a sub-folder called bllog?

    Thread Starter thefoolmonty

    (@thefoolmonty)

    Problem solved, the index file was different in the bllog folder. Now sorted.

    Thank you for your time,

    Although I have one other question that I’m not sure where to ask/post.

    I actually have 2 site. Both hosted on 123 with their own databases.

    Now in the general settings on each site where you’d normally be able to change the site url and site name the boxes are grey-ed out so I cannot change them.

    That means that I cannot have the site titles showing as I want them.

    Also on my second site: mattsallfolks.co.uk the home page shows the correct address but every other page looks something like:

    https://thefoolmonty.co.uk/mattsallfolks/circus-skills-and-workshops/

    Would you know how to loose the /thefoolmonty.co.uk/ prefix?

    Many thanks once again.

    Now in the general settings on each site where you’d normally be able to change the site url and site name the boxes are grey-ed out

    That sounds like you previously changed the site urls using the wp-config.php method outlined in Changing_The_Site_URL. Remove those lines from wp-config.php and try using the functions.php method instead.

    Thread Starter thefoolmonty

    (@thefoolmonty)

    Thank you so much. All sorted now and I cannot thank you enough.

    You’re welcome ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error message’ is closed to new replies.