How to avoid showing users errors of type SQLSTATE?

by user615274   Last Updated October 17, 2019 00:10 AM

I try to avoid showing this type of messages to the user

enter image description here

I have tried to do it by modifying the global configuration but without success, I specifically modified the options Global configuration> System> Debug system I set the value to no, and in Global configuration> Server> Error reporting the value to none, although I understand this is related to logs.

I also found that in the file templates/fontaine_j3_temp/error.php where fontaine_j3_temp corresponds to active template I can modify the error output, but I would like to know if it is possible to do it through the Joomla configuration without perhaps the need to modify templates.

Maybe configure the joomla instance to only show this type of errors in development and some modified error message in production.

Thanks for the suggestions

Related Questions

Updated June 08, 2015 22:04 PM

Updated May 28, 2015 21:04 PM

Updated September 26, 2017 09:10 AM

Updated November 15, 2016 08:04 AM

Updated February 28, 2016 01:04 AM