Cannot get pages or posts to display

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.

Read More

I set my general configurations as:

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

Related posts

Leave a Reply

3 comments

  1. Did you get clean copy of WordPress for reinstall (like went and downloaded from wordpres.org)? That line should be following (SVN)

    require('./wp-blog-header.php');
    

    And it absolutely should not be edited since it is part of WordPress core.

  2. what’s this for?

    require('./wordpress/wp-blog-header.php');
    

    and if you want to include file in wordpress directory which is below your current dir:

    require('/wordpress/wp-blog-header.php');