I am trying to set up WordPress for a client who uses XO Communications as a host. However, getting WordPress set up is driving me nuts. I keep getting this error message (wrapping message for clarity):
Warning: main(./wordpress/wp-blog-header.php)
[function.main]: failed to open stream:
No such file or directory in /web/wordpress/index.php on line 17
I have manually installed the latest release of WP. The admin area is working fine.
I set my general configurations as:
- WP: http://newyorkharborschool.org/wordpress
- Site: newyorkharborschool.org/wordpress
I modified the index file with this code: require('./wordpress/wp-blog-header.php');
I checked and wp-blog-header exists and is in the wordpress directory.
I have tried reinstalling WordPress. None of that worked.
I tried downgrading WordPress: XO offers a one-click installation of an old (2.2.3) version of WordPress. After downgrading, pages and posts displayed. However, when I upgraded I get the above error message.
Thank you for any help. This is driving me nuts!
Jeff
Did you get clean copy of WordPress for reinstall (like went and downloaded from wordpres.org)? That line should be following (SVN)
And it absolutely should not be edited since it is part of WordPress core.
what’s this for?
and if you want to include file in wordpress directory which is below your current dir:
http://www.mydigitallife.info/2010/01/24/how-to-disable-wordpress-canonical-url-or-permalink-auto-redirect/