After WordPress updated, getting error

Solution:

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.