#101624PHP Warning: Undefined array key "MPvar" in typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399
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']),
Reviews 2
Related issues 1
History 916
-
Thomas Hohn changed assigned to Thomas Hohn <span data-processor="relativetime" data-value="2023-08-10T17:00:05+00:00" > 08/10/23, 17:00 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 80512 status
NewUnder Review <span data-processor="relativetime" data-value="2023-08-10T17:00:19+00:00" > 08/10/23, 17:00 </span> -
Gerrit Code Review pushed patch set 2 for main to change 80512 <span data-processor="relativetime" data-value="2023-08-10T18:46:46+00:00" > 08/10/23, 18:46 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 80512 <span data-processor="relativetime" data-value="2023-08-13T18:34:17+00:00" > 08/13/23, 18:34 </span>
-
Simon Schaufelberger changed subject
PHP Warning: Undefined array key "MPvar" in /website/public/typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399PHP Warning: Undefined array key "MPvar" in typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php line 399 description <span data-processor="relativetime" data-value="2023-09-22T08:35:49+00:00" > 09/22/23, 08:35 </span> -
Philipp Parzer commented <span data-processor="relativetime" data-value="2023-10-10T05:55:43+00:00" > 10/10/23, 05:55 </span>
already verified Patchset 3
-
Philipp Parzer commented <span data-processor="relativetime" data-value="2024-03-15T09:12:17+00:00" > 03/15/24, 09:12 </span>
any new updates on this?
-
Georg Ringer commented <span data-processor="relativetime" data-value="2024-05-28T21:24:33+00:00" > 05/28/24, 21:24 </span>
@Philipp there was a question to reproduce in gerrit.
I can reproduce it by setting at one of the pages (A, ab) in the example above
- Home - A - aa - ab (show content from aa) - B (mount point to A)the field
mount_pid_olto 1. this can be achieved by switching it to type mount point, set the field and set it back to regular page or just use the DB -
Gerrit Code Review pushed patch set 4 for main to change 80512 <span data-processor="relativetime" data-value="2024-08-22T04:38:30+00:00" > 08/22/24, 04:38 </span>
-
Stefan Bürk changed Related to #104750 <span data-processor="relativetime" data-value="2024-08-29T14:55:56+00:00" > 08/29/24, 14:55 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 80512 <span data-processor="relativetime" data-value="2024-10-18T13:53:27+00:00" > 10/18/24, 13:53 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 80512 <span data-processor="relativetime" data-value="2025-01-31T12:02:45+00:00" > 01/31/25, 12:02 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87963 <span data-processor="relativetime" data-value="2025-01-31T13:05:47+00:00" > 01/31/25, 13:05 </span>
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-01-31T13:15:08+00:00" > 01/31/25, 13:15 </span>Applied in changeset commit:df3e5193f714fa2567cf76097691057a0e9ea90d.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:37:02+00:00" > 12/02/25, 14:37 </span>
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_pidset>
> […]
>
> 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_pidset>
> […]
>
> 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 @siwa_pparzer ?