Project

General

Profile

Actions

Bug #95858

closed

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

Added by Florian Rival over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2021-11-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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.


Files

Sélection_033.png (15.8 KB) Sélection_033.png Florian Rival, 2021-11-03 11:50
Actions #1

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72058

Actions #2

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72058

Actions #3

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72058

Actions #4

Updated by Florian Rival over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF