WordPress.org

Ready to get started?Download WordPress

Forums

Error: require(./wp-blog-header.php) no such file or directory (9 posts)

  1. Laurie_
    Member
    Posted 1 year ago #

    Hi,
    I have just taken over a site and changed its hosting to within godaddy, I used the filezilla uploader which seems to have worked fine, when I visit the site I have the error message:
    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\11283875\html\index.php on line 17

    Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.;C:\php\pear') in D:\Hosting\11283875\html\index.php on line 17

    I searched through all the files I was given by the previous owner, and could not find the wp-blog-header.php file, So does this mean that the previous owner has not given me a complete copy of the wp files or is there something I'm not doing correctly?

    Thanks,

    Laurie

  2. Tara
    Member
    Posted 1 year ago #

    - What theme are you using?

    - What is your WP version?

  3. Laurie_
    Member
    Posted 1 year ago #

    Hi, Thanks for your response, I apologise in advance that I'm still quite new to this.

    If I can't view log in to the site, how do I check the theme and version?

    I did however give it a shot and look in the wp-content/themes directory and there's a folder called ProSense-Grey-Neo in there but that's empty

    Thanks,

    Laurie

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Your theme and version would be irrelevant for this issue. index.php and wp-blog-header.php are standard wp files

    if you simply transferred files, and do not have wp-blog-header, something is definitely wrong

    Did you just drop the files into your public_html / www directory? If so, index.php and the blog header file should both be in there. Have you hooked WP up to a database already?

  5. Laurie_
    Member
    Posted 1 year ago #

    Yeah so basically, I received the wp files and the sql database, both zipped.
    I unzipped them and used filezilla to add the wp files into the root directory of my domain hosted with godaddy, which I thought would be sweet.

    I also added the database to the domain which also seems right. Hosting account says I've successfully added the database to that domain.

    Reading around, I think I've done the right thing as far as transferring the files as its obviously reading the main index.php file but as I said I'm pretty new to it.

    I don't know if you're familiar with godaddy but on the main launch page of the domain, it shows a small preview of the site, which looks like it is ok, but its not, as stated I get that error.

    When I got the error I started searching through the files and could not locate it, also noticed a number of empty folders (which may be irrelevent I dont know)

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Well, here is the deal. You can basically upload the WP files from a fresh download and see what happens.

    Do you have a wp-content folder in your structure, should be in your root directory. If so, does it have content in it? It should have plenty. DO NOT overwrite this folder.

    Next up, do you have a wp-config.php file? If so, you would need to edit it. That file points to the database, GoDaddy has really goofy database addresses. You can get the DB name, location, username and password in the DB section on godaddy to put into the wp-config file. If you don't have one in the files you were given, you'd need to build it from the wp-config-sample file in a fresh download.

    Do you happen to know what version of WP the files and DB you have were from?

    Basically I would download a fresh copy of WP, unzip it on your computer, remove the wp-content file from that fresh download and upload everything else to your server to try to replace your missing files.

    You should have both the wp-config.php file and that wp-blog-header.php file in your root directory. If not, that is definitely a problem! (There are several other files that should be in your root directory, as well as 3 folders, wp-includes, wp-content, and wp-admin each folder should have a lot of files within)

  7. Go Daddy
    Go Daddy Support
    Posted 1 year ago #

    We also offer a step-by-step article that may help you with making sure you've covered all the steps you need to cover.

    http://support.godaddy.com/help/article/6117/moving-your-wordpress-site-to-us-from-another-host

    If you need us to take a look, we can definitely do that. Just visit our support page and submit a ticket support.godaddy.com or give our 24/7 phone support a call and they can take a look at where you're at and help investigate any issues.

    If you submit a support ticket, you can reply to this post with the ticket number and we can check it out for you.

    ^Cj

  8. Laurie_
    Member
    Posted 1 year ago #

    @Rev. Voodoo

    Hi, thanks for your response,
    So..
    Yes to content folder, fat no to containing content
    No to wp-config.php
    I looked in wp-content / themes / ProSense-Grey-neo : I assume this means I'm supposed to have the prosense grey theme

    Yeah so I think I have been done over, even the uploads folder is empty. So even if i downloaded and re-uploaded the missing files (which looks to be everything) I would still not have any content. *sigh

    The seller of this site hasn't responded to my enquiries so it's not looking good. The only files at all are some index files and 26 files under wp-admin and none at all in the sub folders or any other folder for that matter.

    Thanks for your help, it sounded like a good solution, but without content, not much point hey.

    @ Go Daddy

    Thanks for the reply also, will post ticket if I dont get it sorted

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    If you have all those empty folders... you basically have nothing. I mean, your database may have content in it, but the wp-content folder contains all plugins, themes, and any photos ever uploaded to the site.

    Basically you can try to marry the database to a fresh install of WP, but you are starting from scratch, files wise. I assume you were expecting to have site content, etc? Any posts that had images attached to them will not have the images if your uploads directory is empty

Topic Closed

This topic has been closed to new replies.

About this Topic