• Resolved Tim Vollmer

    (@timvollmer)


    Hello all,

    My site went down on Friday night. I can’t access the site or admin panel. I was simply getting the generic WordPress “error 500”.

    Wordpress error logging showed the error below (which goes over my head). I tried restoring the site and database from a backup from a couple days ago when the site was operating normally, but it hasn’t resolved the problem. Any assistance greatly appreciated!

    Tim

    
    Fatal error: Uncaught Error: Class 'WP_Roles' not found in /home/canyonge/public_html/wp-includes/capabilities.php:718 Stack trace: #0 /home/canyonge/public_html/wp-includes/class-wp-user.php(486): wp_roles() #1 /home/canyonge/public_html/wp-includes/class-wp-user.php(811): WP_User->get_role_caps() #2 /home/canyonge/public_html/wp-includes/class-wp-user.php(174): WP_User->for_site('') #3 /home/canyonge/public_html/wp-includes/pluggable.php(105): WP_User->init(Object(stdClass)) #4 /home/canyonge/public_html/wp-includes/pluggable.php(634): get_user_by('login', 'T2') #5 /home/canyonge/public_html/wp-includes/user.php(344): wp_validate_auth_cookie('T2|1544499110|O...', 'logged_in') #6 /home/canyonge/public_html/wp-includes/class-wp-hook.php(286): wp_validate_logged_in_cookie(false) #7 /home/canyonge/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(false, Array) #8 /home/canyonge/public_html/wp-includes/user.php(2611): apply_filters('determine_curre...', false) #9 /home/canyonge/public_html/wp-includes/pluggable in /home/canyonge/public_html/wp-includes/capabilities.php on line 718
    

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, 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, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message.

    Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter Tim Vollmer

    (@timvollmer)

    @t-p, thanks for that detailed response.
    I have followed those instructions. None of those deactivations or name changes have resolved the issue. Currently, all plugins are still deactivated, my .htaccess file is renamed, and the theme is disabled. The error message that is being logged is below. The error log is cPanel isn’t listing any errors. Where else should I look for more detailed error information?

    [09-Dec-2018 04:59:02 UTC] PHP Fatal error: Uncaught Error: Class ‘WP_Roles’ not found in /home/canyonge/public_html/wp-settings.php:383
    Stack trace:
    #0 /home/canyonge/public_html/wp-config.php(101): require_once()
    #1 /home/canyonge/public_html/wp-load.php(37): require_once(‘/home/canyonge/…’)
    #2 /home/canyonge/public_html/wp-blog-header.php(13): require_once(‘/home/canyonge/…’)
    #3 /home/canyonge/public_html/index.php(17): require(‘/home/canyonge/…’)
    #4 {main}
    thrown in /home/canyonge/public_html/wp-settings.php on line 383

    Moderator t-p

    (@t-p)

    Try debugging.

    Thread Starter Tim Vollmer

    (@timvollmer)

    Thanks for all your help @t-p. I think I’ve got there. The site appears to be running properly now. Fingers crossed!

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Uncaught Error: Class ‘WP_Roles’ not found’ is closed to new replies.