Janen R
Janen R

Reputation: 749

After WordPress updated, getting error

After updating my client's WordPress site to 4.7 version, 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/hyeinfotech.com/wp-settings.php on line 293

Upvotes: 1

Views: 172

Answers (1)

Bikram Pahi
Bikram Pahi

Reputation: 1193

Before you update WordPress you should follow the WordPress guideline.

It looks some files are missing related to user_role class. Try updating plugins. If issue not solved try following solutions.

Solution 1: If you have backup then you can restore the website and try update WordPress once again along with all plugins.

Solution 2:

  1. Create a demo/test location on the server/local computer.
  2. Take backup of wp_content folder.
  3. Take backup of Database.
  4. Install a fresh wordpress on the test location.
  5. Import the database backup on step 3 to test location wordpress database.
  6. Replace the content folder on the test location.
  7. Check, if everything works fine then you can move the code and database to current running server.

I hope this solution will work for you. If not you can hire any reliable WordPress Development Agency or Individual to make things done for you.

Upvotes: 2

Related Questions