Project

General

Profile

Actions

Bug #98181

closed

Undefined in array key in workspaceOL method

Added by Armin Vieweg over 1 year ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2022-08-19
Due date:
% Done:

100%

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

Description

When using EXT:container in TYPO3 11.5.14 with enabled (not live) workspaces, the content element properties does not show up, instead this exception occures:

PHP Warning: Undefined array key "pid" in /www/htdocs/***/vendor/typo3/cms-backend/Classes/Utility/BackendUtility.php line 3432

This line is the following:

// When a moved record is found the "PID" value contains the newly moved location
// Whereas the _ORIG_pid field contains the PID of the live version
$wsAlt['_ORIG_pid'] = $row['pid'];

But, it can happen that the key "pid" is not set in $row.

When wrapping a isset($row['pid']) condition around, the exception does not appear anymore.

The workspaceOL method has been called by: /vendor/typo3/cms-backend/Classes/Form/FormDataProvider/AbstractItemProvider.php line 371


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101443: Exception 'Undefined array key "pid"' after moving content in a workspaceClosed2023-07-25

Actions
Actions

Also available in: Atom PDF