如何强制TYPO3显示404页面而不是显示技术错误?
示例如果TYPO3无法解析给定的url属性我收到以下错误:
Oops, an error occurred!
Exception while property mapping at property path "": The identity
property "dfgdfgdfgdfgdfgdfgdfg" is no UID.
More information regarding this error might be available online.
我已经尝试通过配置来解决它
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] =
'USER_FUNCTION:.....';
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_handling'] =
'USER_FUNCTION:.....';
但这似乎对这些类型的错误没有任何影响。