• I’m trying to install the latest version (5.4) of wordpress. I have created a mysql database, entered the db name, username, and password in the wp-config.php file. I have also added user to the db and granted full access. However, when I go to the link to continue installation [ redundant link removed ] I get below error:

    Warning: require(__DIR__/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/67/52/7265267/web/getbluesample/index.php on line 17
    
    Fatal error: require() [function.require]: Failed opening required '__DIR__/wp-blog-header.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/67/52/7265267/web/getbluesample/index.php on line 17

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you try downloading a fresh copy of WordPress?
    Empty the current folder of https://getbluesample.gcconcierge.com/
    Download WordPress
    Unzip, rename wp-config-sample.php to wp-config.php, then change the database parameters carefully and upload it to your web folder and make sure all files are uploaded without fail. If you are using a ftp client make sure there are no any failures.
    Try installing it again.

    Thread Starter 007freelancer

    (@007freelancer)

    I tried that. I even created a new subdomain and copy the new downloaded files. Same type of error. This is the new link to the new subdomain: https://getblue.gcconcierge.com/

    Dion

    (@diondesigns)

    The correct syntax is: require(__DIR__ . '/wp-blog-header.php');

    Thread Starter 007freelancer

    (@007freelancer)

    Hi Dion, not sure where to apply that syntax. At the end, I contacted the host company and basically they set it up for me. But I still don’t know what went wrong.

    I received the same error with WordPress 5.4.2 and PHP 5.2.

    I solved it with the PHP update to version 7.0.

    Not sure if my problem is related to your exact problem, but it’s related to wp-blog-header.php being broken. From the release of 5.4.1, I had many tickets from clients complaining their WP websites are not working. What I could confirm was that the wp-blog-header.php file was empty (0 bytes) on all of those installations and restoring that file from the official WP package (or a backup) solved the problem. Last one was today. I’m not sure about the old tickets because I haven’t checked at that time, but the one I got today, WP was installed using Softaculous, so, I’m not sure if the problem was a WP updater problem, or more possible a Softaculous problem.

    Everaldo is right, i did update the PHP version from 5.2 to 7.3 and it’s working now.

    Change my PHP version to 7.0 and worked
    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Failed opening required ‘__DIR__/wp-blog-header.php’’ is closed to new replies.