Hook Event Dispatcher Module Errors

Created on 20 April 2023, almost 2 years ago
Updated 10 July 2023, over 1 year ago

Problem/Motivation

When the hook_event_dispatcher contrib. module is enabled this error is thrown, as it's using a decorator:

The website encountered an unexpected error. Please try again later.
TypeError: Drupal\ldap_user\FieldProvider::__construct(): Argument #3 ($module_handler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /var/www/html/web/public/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\ldap_user\FieldProvider->__construct() (line 87 of modules/contrib/ldap/ldap_user/src/FieldProvider.php).

And then once this one is fixed, a series of other errors block logging in.

Steps to reproduce

If you have the most recent version of hook_event_dispatcher module installed as well as LDAP.

Proposed resolution

Use the correlated class interface instead.

🐛 Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

🇺🇸United States sim_1

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

Comments & Activities

Production build 0.71.5 2024