WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] function.require problem after restore (3 posts)

  1. missmoffat
    Member
    Posted 2 years ago #

    Hello

    A site I have worked on has been hacked - Google is listing it as suspicious and has a warning message up on it. I investigated and saw that the only thing to do was delete the current site and restore it from a backup. I've just done this via Filezilla but when I go to the site it brings up this error message:
    Warning: require(/home/petrabis/public_html/wp-includes/class-wp.php) [function.require]: failed to open stream: No such file or directory in /home/petrabis/public_html/wp-settings.php on line 70

    Fatal error: require() [function.require]: Failed opening required '/home/petrabis/public_html/wp-includes/class-wp.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/petrabis/public_html/wp-settings.php on line 70

    I can see no class-wp.php document in the wp-includes folder and so am baffled as to how to resolve this. Any advice very gratefully received - the site has been down for a week now and my client is anxious of course for it to be up and running again. Many thanks

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    I can see no class-wp.php document in the wp-includes folder

    I do. Try re-downloading a fresh copy of WordPress.

  3. missmoffat
    Member
    Posted 2 years ago #

    Thanks for this - it was that simple! My backup for some reason didn't have the class-wp.php document but the latest download of WordPress did - phew!

Topic Closed

This topic has been closed to new replies.

About this Topic