Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

WSOD when viewing revisions #132

@andybroomfield

Description

@andybroomfield

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

This happens when viewing a revision of a node.

Steps to reproduce.

  1. Go to an existing node.
  2. Create a new revision.
  3. Go to the revisions tab
  4. Click the previous revision.

What should happen

Preview page of the old revision

What actually happens

WSOD with error message.

Debugging found this is because the node component of the url is just the NID, not the full node object.
Fix should be to check if its an int, and then load the node.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions