How to disable obsolete posts in Joomla?

I am using Joomla v1.5, and after installing the same components I received outdated messages - how can I disable these messages in Joomla? I cannot disable it in php.ini because I do not have access to php on the server.

+4
source share
5 answers

Insert 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

Thus, all other errors are displayed, except for outdated messages.

+9
source

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.

+5
source

I added the following to the .htaccess file in joomla:

php_value allow_call_time_pass_reference 1

and it worked like a charm. Thanks

+1
source

I added this at the beginning of index.php and fixed it:

 ini_set('display_errors','Off'); error_reporting(E_ALL ^ E_DEPRECATED); 

Thanks Aurelio De Rosa

+1
source

You can try adding index.php

ini_set('allow_call_time_pass_reference', 1);

or .htaccess

php_value allow_call_time_pass_reference 1

But it depends on what causes the problem, as well as the server configuration if you are allowed to change the php configuration.

0
source

All Articles