Exception when used with contrib book

Created on 21 June 2025, 23 days ago

Problem/Motivation

Using this module with the contrib book module is generating this exception

TypeError: Drupal\book_pdfs\BookPdfsGenerator::__construct(): Argument #6 ($event_dispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\book_pdfs\BookPdfsGenerator->__construct() (line 100 of modules/contrib/book_pdfs/src/BookPdfsGenerator.php)

Steps to reproduce

  1. Install Book 2.0.1 on a Drupal 11 site.
  2. Create a book and child pages.
  3. Add the book_pdfs link to a page.
  4. Click the link.
  5. Exception is thrown.

Proposed resolution

TBD

Remaining tasks

TBD

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024