Problem/Motivation

When you use a radix-based theme for the node revision page, you get the following PHP fatal error:

Call to a member function bundle() on string in radix_theme_suggestions_page_alter()

Proposed resolution

Currently the node route parameter is not checked if it is upcasted to a node object already. It should be loaded manually if it is numeric.

Remaining tasks

  • Provide a patch

User interface changes

n/a

API changes

n/a

Data model changes

n/a

CommentFileSizeAuthor
#2 3008219-2.patch669 byteshctom

Comments

hctom created an issue. See original summary.

hctom’s picture

Status: Active » Needs review
StatusFileSize
new669 bytes

Here is a patch that checks if the node route paramter is numeric and loads the node object manually, if so.

jwilson3’s picture

Status: Needs review » Reviewed & tested by the community

We hit this issue, and have been using this patch successfully in production for a few weeks now.

  • arshadcn committed db23955 on 8.x-4.x authored by hctom
    Issue #3008219 by hctom, jwilson3: Call to a member function bundle() on...
shadcn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. Committed.

shadcn’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.