Preview throws fatal error when children present

Created on 14 February 2025, 2 months ago

Problem/Motivation

Book preview throws a fatal error in Drupal 11.1.2.

Steps to reproduce

  1. Create a new book page.
  2. Make it a new book
  3. Add a child page
  4. Edit the original book page
  5. Hit the Preview button

Throws:

TypeError: Drupal\book\ProxyClass\BookManager::bookSubtreeData(): Argument #1 ($link) must be of type array, null given, called in /var/www/html/docroot/modules/contrib/book/src/BookOutline.php on line 49 in Drupal\book\ProxyClass\BookManager->bookSubtreeData() (line 209 of modules/contrib/book/src/ProxyClass/BookManager.php). 

Proposed resolution

Pending investigation

Remaining tasks

Find and fix root cause

User interface changes

Unknown, but not likely

API changes

Unknown, but not likely

Data model changes

Unknown, but not likely

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

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