D11 construct error

Created on 22 July 2025, 7 days ago

Problem/Motivation

Installed on fresh D11. Went to generate a book PDF and got this error:

TypeError: Drupal\book_pdf\BookPdfGenerator::__construct(): Argument #6 ($event_dispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in C:\inetpub\pharmacyinformatics\web\core\lib\Drupal\Component\DependencyInjection\Container.php on line 259 in Drupal\book_pdf\BookPdfGenerator->__construct() (line 81 of C:\inetpub\pharmacyinformatics\web\modules\contrib\book_pdf\src\BookPdfGenerator.php).

Steps to reproduce

  1. Use composer to install D11.
  2. Use composer to install book_pdf
  3. make a book
  4. try to generate PDF

Proposed resolution

Unknown

Remaining tasks

Unknown

User interface changes

None (N/A)

API changes

I don't think any are necessary

Data model changes

I don't think any are necessary

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rconstantine

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

Comments & Activities

Production build 0.71.5 2024