Issue Bug Closed

#95858PHP Warning: Undefined array key "1." in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

Florian Rival 11/03/21, 12:03 updated 10/04/22, 14:13

Description

How to reproduce :
  • create a text content element in a page
  • in bodytext, add a table
  • save and show the frontend

The the exception appears.

The problem is located in this file : typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 3461

   $cfg['HTMLtableCells.'][$cc . '.']['callRecursive']

$cc has a value of 1 and the only value existing in the array is “$cfg[‘HTMLtableCells.’][‘default.’]” so “$cfg[‘HTMLtableCells.’][‘1.’]” causes the exception.

But even with “$cfg[‘HTMLtableCells.’][‘default.’]” there are other missing array keys : ‘callRecursive’, ‘tagStdWrap’, etc.

Reviews 1