WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] ./wp-blog-header.php failed to open stream (10 posts)

  1. webmaid
    Member
    Posted 5 years ago #

    Hallo anyone,
    after two days trying to solve the problem by checking what is recommended in this forum, I am totally running out of ideas.
    I really can use some help!!!
    I installed WordPress already on four other web-sides, always without any problems and now the installation went well, but when I click on "visit site" the following error message appears:
    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in D:\vhosts\icma.as\httpdocs\index.php on line 17
    Fatal error: main(): Failed opening required './wp-blog-header.php' (include_path='.;./includes;./pear') in D:\vhosts\icma.as\httpdocs\index.php on line 17
    What is different this time? All the files and folders are there in the root directory, I only changed wp-config.php as I should and the dashboard works without problems.
    Help would be very appreciated!!!

  2. whooami
    Member
    Posted 5 years ago #

    crack open your index.php with a plain text editor and change this:

    require('./wp-blog-header.php');

    to this:

    require('wp-blog-header.php');

    see if that helps.

  3. webmaid
    Member
    Posted 5 years ago #

    thanks whooami!
    this really did the job.

    From my provider I recieved following message:

    It's a problem with reference to a file in index.php. This problem has been solved. The reason can be the web-area runs in IIS and not Apache.

  4. grerp
    Member
    Posted 5 years ago #

    I am having the same problem. Only I cannot find that little bit of text

    require('./wp-blog-header.php');

    when I open index.php with Notepad.

    I'm adding wordpress to a huge site with thousands of static pages. When I install index.php in the root directory, I can view the blog in my browser, but my home page generates the above error webmaid quoted. When I delete index.php from my root directory, I can view the homepage, but the blog generates the error.

    I'm trying to install wordpress in its own blog folder:

    http://www.sitename.com/blog

    Any help would be appreciated! Thanks!

  5. grerp
    Member
    Posted 5 years ago #

    Okay, I went and uninstalled then re-installed and got it to work. Thanks anyway.

  6. cevansreid
    Member
    Posted 5 years ago #

    I have a similar problem, only mine is with the footer.

    Here is the error Warning: main(./admin-footer.php): failed to open stream: No such file or directory

    Do you know which file controls the footer?

  7. cevansreid
    Member
    Posted 5 years ago #

    Nevermind. I see what's happening.

  8. gaycheckml
    Member
    Posted 5 years ago #

    What is happening????

  9. anga
    Member
    Posted 5 years ago #

    I have the same error. I followed whooami's suggestion above to change the index.php code and that didn't fix the problem.

  10. anga
    Member
    Posted 5 years ago #

    I wanted to provide more details. When I used the GoDaddy auto install, it installed WP into the main directory, and it created a directory called "Blog".

    So here is a snapshot from my file manager:
    Filename Size Date Modified File Type
    blog -- 4/30/2009 5:23:11 am Directory
    images -- 4/17/2009 6:49:53 am Directory
    PDFs -- 4/15/2009 2:29:43 pm Directory
    php_uploads 3/6/2009 1:06:52 am Directory
    aboutus.html 5.19 KB 4/16/2009 5:56:45 am HTML author.html 5.63 KB 4/16/2009 5:56:40 am HTML
    contactus.html 3.85 KB 4/16/2009 5:56:40 am HTML
    copyright.txt 3.03 KB 4/15/2009 2:29:46 pm Text
    dailyplanner.html 5.13 KB 4/16/2009 5:56:46 am HTML
    favicon.ico 0 B 3/6/2009 3:47:16 am Icon features.html 7.99 KB 4/16/2009 5:56:47 am HTML Current
    forbaby.html 4.72 KB 4/16/2009 5:56:41 am HTML
    forwomen.html 4.63 KB 4/16/2009 5:56:41 am HTML
    gdform.php 774 B 3/6/2009 3:47:15 am Script
    index.html 7.89 KB 4/17/2009 6:50:20 am HTML index.php 397 B 4/29/2009 11:16:52 am Script
    license.txt 15 KB 4/29/2009 11:16:52 am Text
    media.html 5.33 KB 4/16/2009 5:56:43 am HTML
    missing.html 1.64 KB 3/6/2009 3:47:15 am HTML
    order.html 7.75 KB 4/16/2009 5:56:44 am HTML
    php.ini 389 B 3/6/2009 3:47:16 am File Current
    readme.html 7.46 KB 4/29/2009 11:16:53 am HTML
    readme.txt 792 B 4/15/2009 2:30:12 pm Text
    style.css 1.26 KB 4/15/2009 2:30:12 pm Style
    terms.html 12.5 KB 4/16/2009 5:56:45 am HTML
    testimonials.html 4.55 KB 4/16/2009 5:56:39 am HTML
    webformmailer.php 32 B 3/6/2009 1:06:52
    welcome.html 2.77 KB 3/6/2009 3:47:16 am HTML

    All of the WordPress files are contained in the directory called Blog. Is anything missing from this main root directory that could fix my problem? Or should I move all of the WP related files out of the "Blog" directory and drop them into the root directory?

    To summarize, when I type in my web address, http://www.bluehealerdiary.com, I receive the following error:

    Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/content/a/n/g/anga20/html/index.php on line 17

    Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/content/a/n/g/anga20/html/index.php on line 17

    Fatal error: main() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/content/a/n/g/anga20/html/index.php on line 17

    And when I type in http://www.bluehealerdiary.com/blog I receive this error:
    arse error: syntax error, unexpected ''' in /home/content/a/n/g/anga20/html/blog/index.php on line 17

    However, I can still access my WP admin and dashboard.

Topic Closed

This topic has been closed to new replies.

About this Topic