Project

General

Profile

Actions

Bug #97619

closed

Undefined array key "_CURRENT_VERSION" in CleanFlexFormsCommand

Added by Alexander Grein over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-05-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

After updating from TYPO3 10.4 to 11.5 my deployment script throw this exception when calling "vendor/bin/typo3 cleanup:flexform":

Warning: Undefined array key "_CURRENT_VERSION" in /..../private/typo3/sysext/lowlevel/Classes/Command/CleanFlexFormsCommand.php line 173

After debugging the mentions line 173, I found the cause in a condition, which is not PHP 8 compatible, because the array key doesn't exists in some cases:

if (!$verRec['_CURRENT_VERSION']) {

To fix this issue it can just be changed to the following, since the value of this key can only be "true" or not set (see previous BackendUtility::selectVersionsOfRecord method):

if (!isset($verRec['_CURRENT_VERSION'])) {


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #98337: Undefined array key "_CURRENT_VERSION" in WorkspaceVersionRecordsCommandClosedDaniel Siepmann2022-09-13

Actions
Related to TYPO3 Core - Bug #98358: Undefined array key "exec" in ExtensionManagementUtilityClosedDaniel Siepmann2022-09-16

Actions
Related to TYPO3 Core - Task #98321: Address "undefined array key" issues for PHP 8Closed2022-09-10

Actions
Actions

Also available in: Atom PDF