• Resolved ttrusty

    (@ttrusty)


    I have been having some problems of my own doing with my blog and it will currently not display. I’ve worked on this for several hours and am unable to figure out the cause of trouble.

    The error messages I am getting are:

    Warning: main(): Unable to access ./news/wp-blog-header.php in /home/virtual/site437/fst/var/www/html/news/index.php on line 4

    Warning: main(./news/wp-blog-header.php): failed to open stream: No such file or directory in /home/virtual/site437/fst/var/www/html/news/index.php on line 4

    Warning: main(): Unable to access ./news/wp-blog-header.php in /home/virtual/site437/fst/var/www/html/news/index.php on line 4

    Warning: main(./news/wp-blog-header.php): failed to open stream: No such file or directory in /home/virtual/site437/fst/var/www/html/news/index.php on line 4

    Fatal error: main(): Failed opening required ‘./news/wp-blog-header.php’ (include_path=’.:/php/includes:/usr/share/php:/usr/share/pear’) in /home/virtual/site437/fst/var/www/html/news/index.php on line 4

    (Note the /index.php at the end of the path. I think this is where the trouble lies.}

    My URL and URI fields on the options page are set https://www.trustyandcompany.com/news which is also the setting for the site URL in my database.

    My index.php file reads:

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

    Any help would be greatly appreciated. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • when you installed wordpress you used https://www.trustyandcompany.com/news for both those settings?

    Are you positive?

    Do this:

    In your wp-config.php, put the following 2 lines:

    define('WP_SITEURL', 'https://www.trustyandcompany.com/news');

    define('WP_HOME', 'https://www.trustyandcompany.com/news');

    Place them before the closing ?>
    and then lets look at that page.

    and since I can see in google that this did work at one time, whats in your top most .htaccess, and whats inside the .htaccess that lives where wp-config.php lives (inside news/)?

    Thread Starter ttrusty

    (@ttrusty)

    Thanks for your help whoomai.

    I have confirmed that the WordPress address and the blog address settings on the options page are set to
    https://www.trustyandcompany.com/news&#8217;. I have also confirmed the siteurl setting of my database is set to the same.

    I added the code that you gave me to wp-config.php where you said to place them. Still no luck. It looks like this:

    [Don’t post usernames and passwords]

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘trustyandcompany_com_-_wordpress’); // The name of the database
    define(‘DB_USER’, ‘DBUSER’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘DBPASS’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);

    define(‘WP_SITEURL’, ‘https://www.trustyandcompany.com/news&#8217;);
    define(‘WP_HOME’, ‘https://www.trustyandcompany.com/news&#8217;);
    ?>

    The.htaccess in folder with config reads:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /news/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /news/index.php [L]
    </IfModule>

    # END WordPress

    I cannot find any other htaccess file.

    Thanks again for taking the time to look at this for me.

    paste the contents of this file, /home/virtual/site437/fst/var/www/html/news/index.php

    Thread Starter ttrusty

    (@ttrusty)

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

    Thread Starter ttrusty

    (@ttrusty)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘blog no longer displays’ is closed to new replies.