I use Joomla v1.5, and after installing same components I got deprecated messages - how can I disable this messages in Joomla? I can't disable it in php.ini, because I don't have access for php in server.
Put in the index.php file, after this line define( '_JEXEC', 1 );
, this statement:
error_reporting(0);
or, as pderaaij says, use:
error_reporting(E_ALL ^ E_DEPRECATED);
As he says,
In this way all of the other errors are shown, except the deprecated messages.
The ideal solution is to set the global configuration setting called "Error Reporting" to either "None" or to "System Default" and then set the "system default" through the use of an .htaccess file on the web root or in the httpd/apache conf.
To set the value in the .htaccess file you can use:
php_value error_reporting 22527
(you can verify this value using php: echo E_ALL ^ E_DEPRECATED;
)
AurelioDeRosa's answer proposes to "hack" (!) the core of Joomla. As stated in my comment, placing error_reporting in multiple locations inside the code is bad practice as it should ideally only be set once. The Joomla 1.5 core code sets the error_reporting as appropriately configured in the global configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With