• Resolved amangual

    (@amangual)


    Hello,

    During the process of backing up my wp files in preperation for an upgrade, I believe I killed my wordpress installation. In the middle of the process, I realized that I was receiving the following error when accessing my site: farbelow.net:

    Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/amangual/public_html/index.php on line 4

    Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/amangual/public_html/index.php on line 4

    Fatal error: main() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/amangual/public_html/index.php on line 4

    Figuring I could pick up the pieces, I moved to deleting the old WP files and uploaded the latest version. Well, have done that twice and still have the problem.

    Notes:
    My blog is at the root of my site.
    wp-blog-header.php (along with all other WP files/folders) is in fact in the root folder of my site.
    Contents of my index.php file, which I believe should be correct because my installation is in the root of my site:
    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    Any help will be much appreciated.

    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The error clearly says the file is not there… so I am wondering what are you seeing in your FTP client. Did you try “refreshing” the View? (it’s a feature in FileZilla, for example, that you need to refresh the View sometimes to see the latest changes on your server)

    Thread Starter amangual

    (@amangual)

    Thank you very much for the reply. I am using Cyberduck on my Mac as my FTP client. There is a refresh view (under Go) and I verified that the wp-blog-header.php is in fact in the folder with my other WP files. I also logged in to CPanel and verified the file is on the server. I re-uploaded the file twice when I was troubleshooting the first time.
    Here is the contents of the file:

    <?php
    /**
     * Loads the WordPress environment and template.
     *
     * @package WordPress
     */
    if ( !isset($wp_did_header) ) {
    	$wp_did_header = true;
    	require_once( dirname(__FILE__) . '/wp-load.php' );
    	wp();
    	require_once( ABSPATH . WPINC . '/template-loader.php' );
    }
    ?>

    Again, any help will be much appreciated.

    Thread Starter amangual

    (@amangual)

    Okay, I figured it out. After responding that the file really was indeed in the right place, I realized that I had copied all of the files into my HOME folder instead of my public_html file.

    Boy, I am red faced. Thank you for asking the straight forward question that made me see the answer was very simple.

    I finished the upgrade process and put back my theme.

    Thanks again,
    amangual

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cant get to my site: wp-blog-header.php error’ is closed to new replies.