WordPress.org

Forums

blog-header.php problem (2 posts)

  1. Reynard
    Member
    Posted 7 years ago #

    Hello,

    I have been getting this error when I try to include index.php somewhere in my site:

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

    Fatal error: main(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/news/index.php on line 4

    Any idea on whats wrong?

  2. Jonathan Dingman
    Member
    Posted 7 years ago #

    It appears your path is wrong. 'no such file or directory' means it can't find the file. Try setting an absolute path file to your blog-header.php such as /home/username/public_html/<your wp directory>/wp-blog-header.php (fill in the variables for your own site)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.