Incompatibility with hook_event_dispatcher module

Created on 5 April 2023, over 1 year ago

Problem/Motivation

Hi, sorry for my bad english.

In my project the hook_event_dispatcher โ†’ module is installed and the modal to insert the pins does not open giving this error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /en/admin/imagepin/pin-widgets/160153/field_image/storage/focus/en/9766
StatusText: OK
ResponseText: TypeError: Drupal\\imagepin\\Form\\PinWidgetsForm::__construct(): Argument #7 ($module_handler) must be of type Drupal\\Core\\Extension\\ModuleHandler, Drupal\\hook_event_dispatcher\\HookEventDispatcherModuleHandler given, called in /var/www/html/web/modules/contrib/imagepin/src/Form/PinWidgetsForm.php on line 85 in Drupal\\imagepin\\Form\\PinWidgetsForm->__construct() (line 107 of /var/www/html/web/modules/contrib/imagepin/src/Form/PinWidgetsForm.php).

Steps to reproduce

  • Install and enable hook_event_dispatcher and imagepin module.
  • Configure imagepin on an entity
  • Try to open the modal for insert the pins

Proposed resolution

Use ModuleHandlerInterface in the widgets form instead of ModuleHandler

In the next comment the proposed patch

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly robertom

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

Comments & Activities

Production build 0.71.5 2024