• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.

After WordPress updating getting error

Started by Chris, October 30, 2019, 04:44:01 PM

WordPress Premium Themes


After updating my client's WordPress site to 4.7 version, I could not access the website and wp-admin. I got this error

Fatal error: Class 'WP_Roles' not found in /webcorp1/www/corpusers/h/y/domain.com/wp-settings.php on line 293

Help me guys..I need it urgently for my client..Thanks in advance


I am commenting on this old post because i want to add solution of this problem.
Seems like the update went wrong and some files got corrupted.

You can try this to fix it:

  • Download a new Wordpress installation zip https://wordpress.org/download/
  • Remove the folders wp-admin & wp-includes from your server
  • Reupload those folders from the fresh downloaded Wordpress zip

Note: this does not delete your site content, the content of your website is in the database and in the wp-content folder.


Did you get any assistance. I have been experiencing such a problem in my site.


Your wordpress version need php 7.4 version to be runned properly

so you need to upgrade your php version

or downgrade you wordpress version to 5.2 and disable wordpress auto update

// wp-configs.php   
define( 'WP_AUTO_UPDATE_CORE', false );


is your issue resolved? or still facing error


Several reasons can cause the WordPress update failed error here are the points:

Delete the .maintenance file
File permissions
Turn off safe mode
Add FTP details to the wp-config file
Update WordPress manually


You need to change your website PHP version to at least 7.4. If this still remain, then your Web Host could help you with this.

WordPress Premium Themes