TYPO3:如何抑制已过时的警告? [英] TYPO3: how to supress deprecated warnings?
本文介绍了TYPO3:如何抑制已过时的警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试修改php.ini文件(error_reporting = E_ALL&〜E_DEPRECATED),但没有结果。我想检查一个较旧的TYPO3项目,所有这些警告真的很烦人。.
I tried modifying the php.ini file (error_reporting = E_ALL & ~E_DEPRECATED), but with no result. There's an older TYPO3 project which I would like to examine, and all these warnings are really annoying..
预先感谢。
推荐答案
我不确定这是否适用于您的Typo3版本,但请尝试在 typo3conf / localconf.php 中设置以下选项code>或通过安装工具。
I'm not sure if this will work on your version of Typo3 but try setting the following options in the typo3conf/localconf.php
or via the Install Tool.
$TYPO3_CONF_VARS['SYS']['displayErrors'] = '0'; // or '-1' to see other errors
$TYPO3_CONF_VARS['SYS']['errorHandlerErrors'] = 22519; // E_ALL ^ E_DEPRECATED ^ E_NOTICE (everything except deprecated-msgs and notices)
$TYPO3_CONF_VARS['SYS']['syslogErrorReporting'] = 22519; // E_ALL ^ E_DEPRECATED ^ E_NOTICE (everything except deprecated-msgs and notices)
$TYPO3_CONF_VARS['SYS']['belogErrorReporting'] = 22519; // E_ALL ^ E_DEPRECATED ^ E_NOTICE (everything except deprecated-msgs and notices)
这篇关于TYPO3:如何抑制已过时的警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文