Skip to main content
4 of 5
edited title
user avatar
user avatar

Is there any SIMPLE way to hide errors ONLY for anonymous users?

In almost all the times I searched for literature about disabling system errors\bad-notifications ONLY for anonymous/non-admin users, the result was large-scale discussions with seemingly pretty different answers involving honorable code changes. But me, I have yet to acquire serious knowledge in PHP... Is there really no SIMPLE solution out there for someone like me? One that will include an external module or pasting a simple code snippet in one of the TPL files?

And please don't tell me to go to `admin/config/development/logging' and click "none", because this option there cancels errors FOR ALL users, and not just for anonymous\non-admin ones.

Please, if you have such a simple, detailed explanation of how to do it, paste it here.

Thank you,

Update - Images that relate to comments:

enter image description here enter image description here

user16289