抛出 TYPO3 异常但未在 FE/BE 中显示

TYPO3 Exception thrown but not shown in FE/BE

如何在 FE 的调试模式(安装 -> 预设)中显示异常?

我正在使用 LTS 7.6.29

我的TYPO3配置是

1 BE/debug
1 FE/debug
* SYS/devIPmask
1 SYS/displayErrors
file SYS/enableDeprecationLog
1 SYS/sqlDebug
0 SYS/systemLogLevel
1 SYS/clearCacheSystem
config.contentObjectExceptionHandler = 0

PHP.ini

error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On

您必须在 TypoScript 中使用此设置以在前端显示错误消息:

config {
        contentObjectExceptionHandler = 0
}

在文件 LocalConfiguration.php 中,您必须设置以下值,它解释了如何使用安装工具设置它们:

SYS
Try, to disable the TYPO3 exception handlers in general:

System > Install > "All Configuration"
Filter by (search-field): exceptionhandler

Set empty values:

[SYS][productionExceptionHandler] =
[SYS][debugExceptionHandler] =
[SYS][errorHandler] =

After debugging set exception handling to the default values:

[SYS][productionExceptionHandler] = TYPO3\CMS\Core\Error\ProductionExceptionHandler [SYS][debugExceptionHandler] = TYPO3\CMS\Core\Error\DebugExceptionHandler
[SYS][errorHandler] = TYPO3\CMS\Core\Error\ErrorHandler

After changing the settings you've to delete the file typo3temp/autoload/autoload_classmap.php that the changed settings are applied to the system. The file will be new created but with a bit different content.
You can delete the file too in installtool by deleting the autoload-information.

这里解释最多:https://docs.typo3.org/typo3cms/extensions/launch/Administrators/03_Errorhandling/09_OopsAnErrorOccured/Index.html