The website encountered an unexpected error.

https://www.drupal.org/forum/support/post-installation/2015-01-30/how-to-edit-settingsphp

After updating Drupal Core if you encountered error displayed in image above make sure you have cleared the cache.

This is also possible that you can’t access the /admin/config therefore access performance link directly at this url /admin/config/development/performance

In my case I upgraded Drupal Core and got The website encountered an unexpected error upon accessing the /admin/config.

In order to understand the cause of this issue, I added following line of code to the sites/default/settings.php

$config['system.logging']['error_level']='verbose';

And issue was resolved by simply clearing the cache, in your case error could be different.

Author: Danyal
I'm skilled programmer with expertise in Vue.js/Nux.js for front-end development and PHP Laravel for back-end development. I excel in building APIs and services, and also have experience in web server setup & maintenance. My versatile skill set allows you to develop and maintain web applications effectively, from the user interface to the server-side functionality. I love coding with never ending learning attitude, thanks for visiting danya.dk