Project

General

Profile

Actions

Bug #98337

closed

Undefined array key "_CURRENT_VERSION" in WorkspaceVersionRecordsCommand

Added by Daniel Siepmann over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2022-09-13
Due date:
% Done:

100%

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

Description

After updating from PHP 7.4 to 8.0 my cronjob throws this exception when calling scheduler task:

 [WARNING] PHP Warning: Undefined array key "_CURRENT_VERSION" in               
           /typo3/sysext/workspaces/Classes/Command/WorkspaceVersionRecordsCommand.php line 304

After debugging the mentions line 304, 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 4 (0 open4 closed)

Related to TYPO3 Core - Bug #97619: Undefined array key "_CURRENT_VERSION" in CleanFlexFormsCommandClosed2022-05-12

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

Actions
Related to TYPO3 Core - Bug #98361: PHP Warning: Undefined array key "_CURRENT_VERSION" in WorkspaceVersionRecordsCommandClosedDaniel Siepmann2022-09-16

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

Actions
Actions #1

Updated by Daniel Siepmann over 1 year ago

  • Related to Bug #97619: Undefined array key "_CURRENT_VERSION" in CleanFlexFormsCommand added
Actions #2

Updated by Gerrit Code Review over 1 year 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/+/75697

Actions #3

Updated by Gerrit Code Review over 1 year ago

Patch set 2 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/+/75697

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 3 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/+/75697

Actions #5

Updated by Daniel Siepmann over 1 year ago

  • Related to Bug #98358: Undefined array key "exec" in ExtensionManagementUtility added
Actions #6

Updated by Daniel Siepmann over 1 year ago

  • Related to Bug #98361: PHP Warning: Undefined array key "_CURRENT_VERSION" in WorkspaceVersionRecordsCommand added
Actions #7

Updated by Daniel Siepmann over 1 year ago

  • Parent task set to #98321
Actions #8

Updated by Daniel Siepmann over 1 year ago

  • Parent task deleted (#98321)
Actions #9

Updated by Daniel Siepmann over 1 year ago

  • Related to Task #98321: Address "undefined array key" issues for PHP 8 added
Actions #10

Updated by Gerrit Code Review over 1 year ago

Patch set 4 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/+/75697

Actions #11

Updated by Gerrit Code Review over 1 year ago

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

Actions #12

Updated by Daniel Siepmann over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF