Issue Bug Closed

#95211DebugUtility results in Oops, an error occurred!

Stefan Froemken 09/13/21, 19:52 updated 10/07/21, 07:17

Description

Hello Core Team,

I have installed TYPO3 10.5.0-dev at Commit e0aa9faa4add5414951c20a733f5a32d4f43fc36. Sometimes I get an “Oops, an error occurred!” when showing cached content in frontend. The error in log is:

Oops, an error occurred! Code: 20210913191958a399196e- Exception: PHP Warning: Undefined array key "line" in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Utility/DebugUtility.php line 160

I have created a backtrace for you in frontend. Last part is:

array(4) {
  ["function"]=>
  string(6) "render"
  ["class"]=>
  string(60) "TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper"
  ["type"]=>
  string(2) "->"
  ["args"]=>
  array(0) {
  }
}

As you see, there is no array key “line”. IMO access to this key should be checked first.

You don’t get the error in production mode.
You don’t get the error if you set config.contentObjectExceptionHandler = 0

Stefan

Reviews 1