Support » Fixing WordPress » Website Main Page Shows Fatal Error

  • [Title de-capitalized; please do not shout at us]

    I was on my site yesterday and updated WORDPRESS but when i went to get back on i had this message:

    Warning: require(/home/staffcpanel/public_html/esp/wp-includes/class-wp-roles.php): failed to open stream: No such file or directory in /home/staffcpanel/public_html/esp/wp-settings.php on line 125

    Fatal error: require(): Failed opening required ‘/home/staffcpanel/public_html/esp/wp-includes/class-wp-roles.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/staffcpanel/public_html/esp/wp-settings.php on line 125

    Not sure what to do to fix it and ive never used FTP before so im really stuck.. Any help would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Hey James,

    I have the same problem. I updated a Worpdress site and then I got this same error.

    Warning: require(/home/content/11/11352011/html/wp-includes/class-wp-roles.php) [function.require]: failed to open stream: No such file or directory in /home/content/11/11352011/html/wp-settings.php on line 125
    
    Fatal error: require() [function.require]: Failed opening required '/home/content/11/11352011/html/wp-includes/class-wp-roles.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/11/11352011/html/wp-settings.php on line 125

    I renamed the plugins folder to plugins.hold from FTP and nothing changed no access to backend either.

    Then I renamed the active theme folder to theme.hold and nothing works either.

    I don’t know what else to do :S.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    If that doesn’t work for you, please start your own thread: https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

    The same thing happened on my site after the 4.7 upgrade. I have no idea what caused it. At the time I was using a duplicator plugin. Suspect the plugin was the culprit.

    Thank you. Copying new files worked like a charm.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Website Main Page Shows Fatal Error’ is closed to new replies.