Do not show errors including database error to users in D7 I have disabled displaying errors to the user in my D7 website. See below the screenshot of the configuration-



However, I (without admin login) still see a database related error such as following-



How do I disable the above error display to a normal user (but making sure admin can see)? It would be better if these errors can be logged but not displayed to a normal user. By saying a normal user, I am referring to all non-logged users.
You should be able to add the following to your settings.php to hide all errors (It will mean the admin screen you mentioned will no longer be used so any changes to this setting will need to be done via settings.php

$conf['error_level'] = ERROR_REPORTING_HIDE;