WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: require_once wp.load (21 posts)

  1. alexjmann
    Member
    Posted 5 years ago #

    My site went from working to not working, literally overnight. I woke up in the morning and tried to log on to my dashboard, and received this error:

    Warning: require_once(/home/alexjmann/alexjmann.com/wp-config.php) [function.require-once]: failed to open stream: Permission denied in /home/alexjmann/alexjmann.com/wp-load.php on line 27

    Fatal error: require_once() [function.require]: Failed opening required '/home/alexjmann/alexjmann.com/wp-config.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/alexjmann/alexjmann.com/wp-load.php on line 27

    I've made major edits to the CSS, so I'd like to avoid replacing all of the files. Help would be appreciated.

  2. creatureofcraft
    Member
    Posted 5 years ago #

    I received the same exact error! Same thing -- worked last night, and doesn't work today. I can't even log into the back end... all avenues lead to the error.

  3. alexjmann
    Member
    Posted 5 years ago #

    I'm reinstalling just the default wp-load file. We'll see if that works. I'll let you know.

  4. alexjmann
    Member
    Posted 5 years ago #

    I reinstalled the default wp-load file, and nothing changed. Still getting the same error. Would appreciate any guidance on this.

  5. thecoup
    Member
    Posted 5 years ago #

    This happened to me overnight as well. Is it an odd coincidence, or has someone taken advantage of new vulnerability? Have we been hacked?

    The site I'm working with is hosted on Dreamhost. Anyone else?

  6. alexjmann
    Member
    Posted 5 years ago #

    I'm Dreamhost as well. I contacted them a few minutes ago. This is an odd coincidence indeed.

  7. thecoup
    Member
    Posted 5 years ago #

    If we are all on Dreamhost, it could be a problem with their apache settings or php library or how they run php as cgi.

    The paths in my error have the same structure as alexjmann, both to my files and the php library. That also suggests we might be on the same host.

  8. thecoup
    Member
    Posted 5 years ago #

    Then it's true. Everyone contact Dreamhost ASAP. If anyone at WordPress has a phone contact, a call would be very much appreciated.

  9. thecoup
    Member
    Posted 5 years ago #

    Is your file server named Riddler? MySQL server Phillip? (Click account status toward the top right in your Dreamhost panel.)

    If anyone else is having trouble, make a note here and give dreamhost a link to this thread when you contact support.

  10. alexjmann
    Member
    Posted 5 years ago #

    Riddler; yes. MySQL is not Phillip, it is towelie.

    Please let me know if you make any progress on this. I will forward Dreamhost this thread.

  11. alexjmann
    Member
    Posted 5 years ago #

    I'm resolved. The issue was on Dreamhost's end.

  12. lynn.currie
    Member
    Posted 5 years ago #

    Happened to me as well (also on Dreamhost). My site is still down.

  13. thecoup
    Member
    Posted 5 years ago #

    Not fixed for me yet. Did they tell you what it was? ...So I can tell them to look for the same thing?

    Thanks for the teamwork...

  14. thecoup
    Member
    Posted 5 years ago #

    Dreamhost says: "Sorry for the trouble. The issue was One-Click related. A push out inadvertently changed the permissions on wp-config.php. Running chmod 644 wp-config.php will fix it. We're aggressively working on correcting the issue now. Thanks for your patience."

    You can fix it yourself by changing the file permissions on wp-config.php to 644. But they'll do it for you soon enough.

    Scary that their one-click is making changes to our sites with zero-clicks.

  15. Organization Nazi
    Member
    Posted 5 years ago #

    forgive my rookie-ims but how do you change those permissions exactly?

  16. alexjmann
    Member
    Posted 5 years ago #

    I was not given an explanation by Dreamhost. They just emailed me and told me it was fixed.

  17. thecoup
    Member
    Posted 5 years ago #

    You might consider changing your username. I know that you mean you're intense about organizing, but it's grammatically ambiguous and I first thought you considered yourself the Nazi Organization.

    You might try another word like guru or sergeant.

  18. msein
    Member
    Posted 5 years ago #

    arrrr. I am facing the problem exactly the same as you guys. And also I dont have access to the server. Php, MySql and all the configuration files are in that server.

    I can only run the php file on the browser and I dont have permission to the above software configurations.

    Does anyone have any idea on how to do it? I am really really stuck in that thing. Please, someone enlighten me how to do it if you can.

  19. thecoup
    Member
    Posted 5 years ago #

    You must have FTP access, online or thru a client. Read your host's instructions. Find the file and right-click or select to chmod or change permissions. But you should tell your host to figure out why it was changed to begin with....

  20. billh
    Member
    Posted 4 years ago #

    Change the line

    require_once('../wp-load.php');

    to

    require_once( ABSPATH . 'wp-load.php');

    I have to change this line with each upgrade. My error shows up in the file update-links.php.

  21. JSayHello
    Member
    Posted 4 years ago #

    Bill your a savior! I couldn't figure this out until i replaced that line like you suggested. thanks

Topic Closed

This topic has been closed to new replies.

About this Topic