Project

General

Profile

Actions

Bug #86010

closed

Creation of Content BELOW another Content Element leads to Exception

Added by Daniel Goerz about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2018-08-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

On current master it is not possible to insert content below other content (creating a content element at the topmost position works).

This is because in the EditDocumentController the PID of the current page is ecpected to be passed to getLanguages() where it is used for SiteMatcher->matchByPageId($id)

However, if one inserts a content element BELOW another content element no longer is the PID passed but the negative UID of the above Content Element instead.

if ($insertRecordOnTop) {
    $relatedPageId = $nRec['pid'];
} else {
    $relatedPageId = -$nRec['uid'];
}

In such a case the SiteMatcher fails to find a Site (or PseudoSite) and throws the Exception: #1534710048: No pseudo-site found in root line of page -<uid>


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #85930: Add API for Site resolvingClosedBenni Mack2018-08-22

Actions
Actions

Also available in: Atom PDF