WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal Error in opening comments (3 posts)

  1. leewind
    Member
    Posted 7 years ago #

    The error messages:

    Warning: main(../../../wp-blog-header.php): failed to open stream: No such file or directory in /home/leewind/public_html/blogs/wp-content/themes/bluehorizon/comments-popup.php on line 4

    Warning: main(../../../wp-blog-header.php): failed to open stream: No such file or directory in /home/leewind/public_html/blogs/wp-content/themes/bluehorizon/comments-popup.php on line 4

    Warning: main(../../../wp-blog-header.php): failed to open stream: No such file or directory in /home/leewind/public_html/blogs/wp-content/themes/bluehorizon/comments-popup.php on line 4

    Fatal error: main(): Failed opening required '../../../wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/leewind/public_html/blogs/wp-content/themes/bluehorizon/comments-popup.php on line 4

    --------------------------------------------------------

    Could someone please help me where I should start to fix this problem? I didn't realize this problem until recently. I think it must have been there after I tried unsuccesfully upgrading WP to version 2.0.4 (I've even being denied to the blog main page before but it was ok again after editing some lines with my webhoster's file editor.)

    Any help would be greatly appreciated! Thanks millions.

  2. yosemite
    Member
    Posted 7 years ago #

    ../../../wp-blog-header.php

    Looks like you're not going up high enough, try:

    ../../../../wp-blog-header.php

  3. leewind
    Member
    Posted 7 years ago #

    Edit the file

    comments-popup.php

    Find the line '../../../wp-blog-header.php'

    simply point the wp-blog-header.php file with the correct path.

    you can also use the full path such as:

    http://www.your-site.com/blog/wp-blog-header.php

    -or-

    http://www.your-site.com/blog/wordpress/wp-blog-header.php

    it's just that the code ../../../ refers to three directories before the file wp-blog-header.php searched by the comments-popup.php file.

    example:
    http://www.your-site.com/blogs/index.php can be changed to ../blogs/index.php when you refer the file 'index.php' in your script.

    i hope that helped! ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic