TypeError: Cannot assign string to property node in RouteAccessController

Created on 16 October 2024, 6 months ago

Problem/Motivation

TypeError: Cannot assign string to property Drupal\book\Controller\RouteAccessController::$node of type Drupal\node\NodeInterface in Drupal\book\Controller\RouteAccessController

Steps to reproduce

  1. Create a views page display with path /node/%node/ANYTHING with menu link entry type "Menu tab"
  2. Go to a node and click on the tab of that view

Proposed resolution

Load the node if the node parameter in RouteAccessController::__construct() is not upcasted.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland boromino

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