• Hey there –
    We recently installed a new version of WordPress for a client. Site has been just fine but all of the sudden today we get this message when going to homepage.

    Fatal error: require() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.;c:\php5′) in D:\Inetpub\unconventionaloilandgasmethods\index.php on line 4

    The backend admin login works perfectly and error is only shown when trying to view site as visitor.

    Web address is https://unconventionaloilandgasmethods.com.

    This is running on a Windows server (unfortunately) and the techs said they recently upgraded to PHP 5.2.4. I didn’t think that would make a difference though.

    Any ideas?
    Thanks!
    Erik

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you using a custom theme or one of the 2 that are bundled with WordPress? If it’s a theme you downloaded from somewhere switch to one of the two that’s shipped with WordPress (Default or Classic)–if the error goes away with them then the theme you are trying to use has some errors and won’t work with your version of WordPress. If you get the same error with the bundled themes then it’s probably a setup issue with the server.

    I have exactly the same problem. Nothing on the site has changed at all. I actually tried the above since I had created a custom theme but changing to a default theme didn’t work.

    My site is for a candidate two weeks from election so this is fairly serious

    Erik-

    If you are subscribing to the feed for this topic. . .I see your site is back up and running. Can you tell me what you did?

    Thanks!

    Ok- In case anyone else has this problem in the future, The support team from my ISP got back to me with this”Yes. PHP was upgraded.One of the changes to this version of PHP was to tighten up the directory security.

    Net result:
    You can no longer legally use”./” in a path name at the root level.
    ‘./wp-blog-header.php’

    …needs to be…

    ‘wp-blog-header.php'”

    I made the change and viola. Whew!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Error — What is causing this?’ is closed to new replies.