Book navigation block is broken

Created on 1 November 2024, 5 months ago

Problem/Motivation

The book navigation block won't show up. An error at the end of the page will appear instead:

The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\ContextException: The node context is not a valid context. in Drupal\Core\Block\BlockBase->getContextDefinition() (line 150 of core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php).

Steps to reproduce

Enable book on a fresh Drupal 10.3.6 site with standard profile, create a book node and make it a new top-level page. From its view page click Add child page to add a few other book nodes as children. Go to Block Layout and place the Book navigation block in the Sidebar region.

Proposed resolution

Remaining tasks

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Production build 0.71.5 2024