The ideal solution is to set a global configuration setting called Error Reporting, either None or System Default, and then set System Default using the .htaccess file in the website’s root directory or in httpd / apache conf.
To set a value in a .htaccess file, you can use:
php_value error_reporting 22527
(this value can be checked with php: echo E_ALL ^ E_DEPRECATED; )
Answer AurelioDeRosa suggests “hacking” (!) The core of Joomla. As pointed out in my commentary, placing error_reporting in several places inside the code is bad practice, since ideally it only needs to be set once. Joomla 1.5 kernel code sets the error_reporting value as correctly configured in the global configuration.
source share