Bug #101624
openPHP Warning: Undefined array key "MPvar" in typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399
0%
Description
Error occurs if you have a mount point, which points to a page and this page has a subpage which has a content_from_pid
set
- Home - A - aa - ab (show content from aa) - B (mount point to A)
if you now call /B/ab you get the error
could be easily solved:
(string)($pageCandidate['MPvar'] ?? $pageCandidate['mount_pid_ol']),
Updated by Gerrit Code Review 9 months 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/+/80512
Updated by Gerrit Code Review 9 months 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/+/80512
Updated by Gerrit Code Review 9 months 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/+/80512
Updated by Simon Schaufelberger 8 months ago
- Subject changed from PHP Warning: Undefined array key "MPvar" in /website/public/typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399 to PHP Warning: Undefined array key "MPvar" in typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399
- Description updated (diff)
Updated by Thomas Hohn 7 months ago
Philipp Parzer wrote:
Error occurs if you have a mount point, which points to a page and this page has a subpage which has a
content_from_pid
set[...]
if you now call /B/ab you get the error
could be easily solved:
(string)($pageCandidate['MPvar'] ?? $pageCandidate['mount_pid_ol']),
Philipp Parzer wrote:
Error occurs if you have a mount point, which points to a page and this page has a subpage which has a
content_from_pid
set[...]
if you now call /B/ab you get the error
could be easily solved:
(string)($pageCandidate['MPvar'] ?? $pageCandidate['mount_pid_ol']),
Could you please verify the proposed patch @Philipp Parzer ?