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 https://surfrock66.com/blog/ which, for my site, no one does.


As with past UFC events, MMA Spot will be bringing our readers round by round coverage and post-fight press conferences for tonight's pay-per-view broadcast of UFC 104: Machida vs Shogun. The event will be taking place from the Staples Center in Los Angeles, and features a light heavyweight title bout between former PrideFC champion Mauricio 'Shogun' Rua and undefeated current champ Lyoto 'The Dragon' Machida. Also on the card, heavyweights Cain Velasquez and Ben Rothwell battle to see who stays line for a potential shot at the heavyweight title.
Former IFL champion Chris "The Polish Hammer" Horodecki (13-1) is expected to sign with Zuffa owned World Extreme Cagefighting according to trainer Shawn Tompkins. Currently on a two-fight winning streak, Horodecki would be joining the organization as a lightweight. While no deal has yet been inked, Horodecki is looking to join with a major promotion after his first win following a year-long layoff due to injury.