Project

General

Profile

Actions

Bug #96869

closed

Undefined array key in EXT:frontend

Added by JAKOTA Design Group GmbH almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-02-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Remote Sprint

Description

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

Line 6228 is

&& !empty($GLOBALS['TCA'][$table]['ctrl']['versioningWS'])

should be

&& !empty(($GLOBALS['TCA'][$table]['ctrl']['versioningWS'] ?? ['versioningWS'])['versioningWS'])

Thanks


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96816: Undefined array key in EXT:frontendClosedOliver Bartsch2022-02-10

Actions
Actions #1

Updated by JAKOTA Design Group GmbH almost 3 years ago

Sorry, wrong patch..

it should be

&& !empty($GLOBALS['TCA']['test']['ctrl']['versioningWS'] ?? null )

Actions #2

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

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

Actions #3

Updated by JAKOTA Design Group GmbH almost 3 years ago

  • % Done changed from 0 to 100

I'm sorry for this mix up.
My IDE had auto format the code.

this is actually fixed already by https://forge.typo3.org/issues/96816

please close this one

Thanks

Actions #4

Updated by Georg Ringer almost 3 years ago

  • Related to Bug #96816: Undefined array key in EXT:frontend added
Actions #5

Updated by Georg Ringer almost 3 years ago

thanks for feedback, closed

Actions #6

Updated by Mathias Schreiber over 2 years ago

  • Sprint Focus set to Remote Sprint
Actions #7

Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Under Review to Closed
  • Target version deleted (next-patchlevel)

Closed as requested by the reporter.

Actions

Also available in: Atom PDF