Bug #94140

PHP Warning appears when preview in workspace and item of mm relation is disabled

Added by Nikita Hovratov 7 months ago. Updated 5 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-05-14
Due date:
% Done:

0%

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

Description

PHP Warning: array_intersect_key(): Argument #2 is not an array

Full stack trace in attachement.

In class Typo3DbBackend->overlayLanguageAndWorkspaceForJoinedSelect:

$fieldsOfMainTable = $pageRepository->getRawRecord($tableName, $rows[0]['uid']);

The getRawRecord method may return a "0", if the versionied record is disabled.


Files

TYPO3 Exception.html (349 KB) TYPO3 Exception.html Nikita Hovratov, 2021-05-14 10:41
BUGFIX_typo3_10_4_17_extbase_forge_typo3_issue_94140.patch (1.7 KB) BUGFIX_typo3_10_4_17_extbase_forge_typo3_issue_94140.patch Patch for 10.4.17 Heiko Fischer, 2021-07-08 10:46

Related issues

Related to TYPO3 Core - Bug #93484: TYPO3 Workspace, Preview module raising exception for versioned plugin recordsClosed2021-02-10

Actions
#1

Updated by Nikita Hovratov 7 months ago

  • File deleted (index.php.htm)
#3

Updated by Nikita Hovratov 7 months ago

  • Related to Bug #93484: TYPO3 Workspace, Preview module raising exception for versioned plugin records added
#4

Updated by Nikita Hovratov 7 months ago

  • Description updated (diff)
#5

Updated by Nikita Hovratov 7 months ago

  • Description updated (diff)
#6

Updated by Heiko Fischer 5 months ago

We wrote a patch for this issue on Typo3 10.4.17, where we just keep him from entering the intersect method.

The patch is prepared for composer patches "cweagans/composer-patches". Therefore it targets the typo3/cms-extbase repository.

Also available in: Atom PDF