Call to a member function getTitle() on null in gin_preprocess_page_title()

Created on 14 March 2022, over 2 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

On gin_preprocess_page_title() $node is not always instanceof Node and it breakes the administration page.

Steps to reproduce

Create a administration view with a url that contains a "%node" route parameter and a Content:ID as contextual filter.

I think this problem is introduced here https://git.drupalcode.org/project/gin/-/commit/a46976df65d5610f8c91259a... (not sure if there is a drupal issue for this commit). I’ve created a patch that solves the problem by checking the route name.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇬🇷Greece karma86

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