• Resolved neuville

    (@neuville)


    Hello Guys,
    I’ve just switched to php 5 from my hosting control panel, but I cannot view my blog. I can still access the wordpress admin area (in a folder under the domain) but all other things are gone and my home page gives me this error:

    Warning: require(./folder/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4
    
    Warning: require(./folder/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4
    
    Fatal error: require() [function.require]: Failed opening required './folder/wordpress/wp-blog-header.php/' (include_path='.:/php5/lib/php/') in /web/htdocs/www.adverbox.com/home/index.php on line 4

    I’ve tried to view the index.php and .htaccess settings, and they’re correct.

    any idea on how to solve this? thanks in advance!

Viewing 15 replies - 1 through 15 (of 19 total)
  • wp-blog-header.php
    you’re sure it’s there?

    this is fixed, based on what I see at the url thats shown in the error.

    Thread Starter neuville

    (@neuville)

    @ whooami: no, it isn’t. I’ve just switched to php4 and it works fine.

    @sambroll: yes, the file is there (admin/wordpress/)

    i hope you meant it is here
    /wordpress/wp-blog-header.php

    Warning: require(./folder/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4

    Warning: require(./folder/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4

    Fatal error: require() [function.require]: Failed opening required ‘./folder/wordpress/wp-blog-header.php/’ (include_path=’.:/php5/lib/php/’) in /web/htdocs/www.adverbox.com/home/index.php on line 4

    did you edit any of that before pasting it?

    it would be nice to see the real error message if you did. if you didnt, you can clearly see that it (PHP) is looking for things in the wrong place. that’s an issue with the server’s PHP configuration, not wordpress, if thats the case.

    .. unless, this path:

    /web/htdocs/www.adverbox.com/home/folder/wp-blog-header

    actually exists.

    far as I can tell, it doesnt.

    this, by the way, goes to the importance of providing accurate information when pasting error messages to the forum.

    Thread Starter neuville

    (@neuville)

    forgive me, the correct path is admin/wordpress

    I was working on a test install in same server and pasted the wrong code (also, just deleted the test install and the error still exists…)

    forgive me, the correct path is admin/wordpress

    how about you correct the error message in it’s entirety instead of leaving us to wonder ?? since even that does not correspond to where wordpress needs to be looking for that file.

    this shouldnt be like pulling teeth., were not dentists.

    Thread Starter neuville

    (@neuville)

    you’re right, I’ll edit the code ??

    the prob is still there, btw…

    //edited… I cannot edit past posts, it seems.

    here you’re the right code:

    Warning: require(./admin/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4
    
    Warning: require(./admin/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4
    
    Fatal error: require() [function.require]: Failed opening required './admin/wordpress/wp-blog-header.php/' (include_path='.:/php5/lib/php/') in /web/htdocs/www.adverbox.com/home/index.php on line 4

    ok.

    so, we have this:

    Hello Guys,
    I’ve just switched to php 5 from my hosting control panel, but I cannot view my blog. I can still access the wordpress admin area (in a folder under the domain) but all other things are gone and my home page gives me this error:

    and this is the error:

    Warning: require(./admin/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4

    Warning: require(./admin/wordpress/wp-blog-header.php/) [function.require]: failed to open stream: Not a directory in /web/htdocs/www.adverbox.com/home/index.php on line 4

    Fatal error: require() [function.require]: Failed opening required ‘./admin/wordpress/wp-blog-header.php/’ (include_path=’.:/php5/lib/php/’) in /web/htdocs/www.adverbox.com/home/index.php on line 4

    why is PHP 5 looking in admin ? wordpress uses wp-admin.

    Interesting.

    Thread Starter neuville

    (@neuville)

    hello whooami, admin/wordpress is the folder of my install.

    the dashboard and all other admin stuff works great, just the blog is not visible with php 5

    ok, but, then whats this:

    /web/htdocs/www.adverbox.com/home/index.php

    where’s admin?

    Im not understanding what you have done, and no doubt that is precisely PHP 5’s problem as well.

    is wordpress installed into :

    /web/htdocs/www.adverbox.com/home/admin/wordpress

    ??

    if so? why???

    I dont think I have ever seen wordpress installed that way (2 directories deep) with an index.php left in the root dir.

    `

    Thread Starter neuville

    (@neuville)

    I installed it 4 years ago (I knew nothing of WP at that time) ??

    I don’t drop it into the root directory because I fear something goes wrong…

    is wordpress installed into : …

    you didnt answer my question.

    ive no doubt that your original install path is the source of your problem ..

    You can confirm it rather easily, by installing wordpress normally (no putting all the wordpress files in a directory 2 deep) in a sub-directory, and seeing if you get similar issues (im willing to bet that you dont)

    I could fix your problem my self, if youre hell-bent on switching to PHP5, but Im afraid I cant do it for free.

    If youre interested, contact me off the forum.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘failed to open stream error when switching to php5’ is closed to new replies.