White Screen when node is invalid

Created on 25 October 2024, about 2 months ago

Problem/Motivation

When the route entity.node.canonical has an invalid node id, the site White Screens

E.g. /node/00010567

TypeError: _quick_node_clone_has_clone_permission(): Argument #1 ($node) must be of type Drupal\Core\Entity\ContentEntityInterface, null given, called in quick_node_clone\src\Controller\QuickNodeCloneNodeAccess.php on line 29 in _quick_node_clone_has_clone_permission() (line 114 of quick_node_clone\quick_node_clone.module).

Steps to reproduce

Install quick_node_clone
Goto /node/00010567

Proposed resolution

Add check in QuickNodeCloneNodeAccess

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.18

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bluegeek9

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024