Fatal error when the node is missing (404) and the node title token is used for the page title

Created on 30 June 2020, almost 5 years ago
Updated 17 May 2023, almost 2 years ago

When I use [node:title] as a node view page title and attempt to navigate to the page that doesn't exist, instead of 404 I am getting fatal error on the page. I track it down to a bug in PageManagerHelper::fixContexts() function. When the line is NULL there on the line 109, it still proceeds to leave intact the context that uses an ID string instead of the node entity. As a result, down the stream token module crashes on trying to get title from the string. I already fixed the bug, so will supply the patch with the fix.

πŸ› Bug report
Status

Closed: won't fix

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States calmforce

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024