• Resolved scottdubose

    (@scottdubose)


    Man did I screw up. Was using a laptop with a sticky pad button to make changes using ftp. While scrolling down I accidentally got stuck on a file and didn’t notice until it was to late. I got the wp settings and wp includes lost in some other files. Can this be fixed? I tried to drag and drop back into the right files and just screwed it up more. I’m about to chuck this lap top. Anyway, if it cant be fixed can I download 2.7 and use the same url? I would hate to start all over again, I had a lot of downloads and affiliate links. Any advice will be welcome. The error message is as follows.

    Warning: require(/home/scott/public_html/wp-includes/compat.php) [function.require]: failed to open stream: No such file or directory in /home/scott/public_html/wp-settings.php on line 207

    Fatal error: require() [function.require]: Failed opening required ‘/home/scott/public_html/wp-includes/compat.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/scott/public_html/wp-settings.php on line 207

    Excuse me while I go bang my head against the wall.

    Thanks,
    Scott

Viewing 12 replies - 1 through 12 (of 12 total)
  • All of your posts and comments and such are stored in the database. If you’re unsure of what you did exactly you might want to delete the WP files and re-upload fresh copies.

    Make sure you don’t delete:

    wp-config.php file
    wp-content folder

    if you’ve added any custom rules to your .htaccess file you might want to hang on to that as well – if not get rid of it as WP will generate a new one when you use fancy permalinks

    Thread Starter scottdubose

    (@scottdubose)

    Thanks for the response. I was thinking about upgrading to 2.7 anyway. Is it possible to use the same url and just download that?

    Thread Starter scottdubose

    (@scottdubose)

    Im almost sure that I might have goten wp content screwed up as well.

    I’m unsure of the particular changes in the database schema between 2.6 and 2.7. To be safe you should re-upload the 2.6 files (or whatever version you were using) then follow the upgrade instructions.

    I mentioned hanging on to the wp-content folder because it may contain custom themes and such. If its not important to you then you can get rid of it and re-upload a fresh copy of that as well.

    Thread Starter scottdubose

    (@scottdubose)

    I just ftp’d in and checked out what I did. My public html file is all screwed up. It’s ok down trough all the new files that I created for downloads off of my site but when I get to the bottom I have wp admin and the wp content. under wp content I have a plugin listed then the file for plugins. I cant find the thems file and I have a couple of plugins files. Can I reload the whole puplic html file?

    Thread Starter scottdubose

    (@scottdubose)

    I might be able to move stuff around on my home computer if I knew what the bottom half of the Public html file is supposed to have in it. I found the themes file way down in another subfile. I just have no idea what is the basic hiles are and how they are suposed to be listed. Would rather just change to 2.7 and pull out what I can save from some files if I can still use the same url.

    Thread Starter scottdubose

    (@scottdubose)

    I think I got it figured out. I found my theme folder in a subfolder in one of my plugins folder. I moved that back and now I noticed that my wp-includes is in my wp-admin. This would be the reason for the error mesage statement. Would like to know where the wp-includes is suposed to be filed under?

    I found my theme folder in a subfolder in one of my plugins folder. I noticed that my wp-includes is in my wp-admin.

    Wow. 🙂 A WordPress install will contain 3 main folders ->
    1. wp-content
    2. wp-admin
    3. wp-includes

    with a series of files living outside of them.

    Thread Starter scottdubose

    (@scottdubose)

    Ok, I’ve got the wp-includes file back into it’s right place and I’m still getting the same error message.
    Warning: require(/home/scott/public_html/wp-includes/compat.php) [function.require]: failed to open stream: No such file or directory in /home/scott/public_html/wp-settings.php on line 207

    Fatal error: require() [function.require]: Failed opening required ‘/home/scott/public_html/wp-includes/compat.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/scott/public_html/wp-settings.php on line 207

    So I guess I need to find my wp-settings file. Does anybody know where it is supposed to be?

    Thread Starter scottdubose

    (@scottdubose)

    found a wp-settings file but it doesnt look like it had been moved by the date on it. I found it in www file which is two files under the public html file. Is the www file suposed to have everything just about that the public html file has in it? Is this the file I want in my wp-includes or is this a different file?

    Is the www file suposed to have everything just about that the public html file has in it?

    You mean folders. 🙂 The www and public_html folders are the same thing. They contain the same content. The www folder is simply a short cut pointing to the public_html folder. (comes in handy when working at the command line level) The file wp-settings.php lives outside of the main WP folders (wp-content, wp-admin, wp-includes)

    The easiest thing to do is simply compare the WP structure on your hard drive to the structure on your host.

    Thread Starter scottdubose

    (@scottdubose)

    I used host gator who hosts my site to reinstall from back ups they do every sunday. Cost me 15.00. Moderators and members need to tell everyone to back up more often. It would be a simple solution to a lot of problems and could save moderators and members that are trying to help others a lot of time. That would allow them to go on to other questions and have a better response rate to the forums. NEEDS TO BE STRESSED BY EVERYONE.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Fatal error: require() site wont open’ is closed to new replies.