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

Issue fork book_pdfs-3531560

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mdranove created an issue. See original summary.

joseph.olstad’s picture

Ah ok, I haven't tested this yet with Drupal 11, please submit a patch or merge request, I'll review it.

dhruv.mittal’s picture

Assigned: Unassigned » dhruv.mittal

dhruv.mittal’s picture

Assigned: dhruv.mittal » Unassigned
Status: Needs work » Needs review

Please review

joseph.olstad’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.