Issue Bug Closed

#32292Page within a mountpoint using "Show Content from Page" results in 503 header

Patrick Broens 12/05/11, 09:56 updated 10/02/18, 12:19

Description

Problem:
A page (A) within a mountpoint using “Show Content from Page” (B) (pages: content_from_pid) results in a 503 header with the message “The requested page didn’t have a proper connection to the tree-root!”.

When content_from_pid is used, the TSFE for the current object (page A) will be cloned to a temporary object in tslib:TSpagegen (page B). In this temporary object, the page id is set to “page A”->content_from_pid. However, the MP is not changed, and will have the MP of page A.

This results in a TSFE page object (Page B) with the wrong MP (From Page A).

Within this temporary object the rootline will be calculated, which will be empty, because of the wrong MP variable. This triggers the 503 header with the mentioned message.

Solution:
Clear the MP variable in the temporary TSFE object for page B.

Releases:
4.7, 4.6, 4.5

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.