Fix WordPress Update Errors
For me, every time I upgrade wordpress I get the same error. I don't have wordpress in my website's root; it's actually called from an index in my root, which calls the index in a /blog/ folder. This produces the following:
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/t/o/v/toverzat/html/index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/t/o/v/toverzat/html/index.php on line 17
The problem comes from the fact that wordpress assumes it's in root, and if you reassign wordpress to a directory (which I did in the settings) it will assume the function calls are coming from that directory. This is not the case when you're me and you want your index to be separated from wordpress, in the root, in case I decide one day to have a homepage that doesn't reference the wordpress installation. (For example, I may decide to throw a full page announcement one day, or I use a mobile homepage which ignores the blog and just uses the menu at the top and the search box)
So, the solution for me is very simple. I open /blog/index.php and change the following line:
require('./wp-blog-header.php');
to:
require('./blog/wp-blog-header.php');
Since index.php is really only called when I call the root index of the whole site, i.e. it's called from a directory above the wordpress installation, it creates no issues for me unless you go to http://www.surfrock66.com/blog/ which, for my site, no one does.