ModuleHandler error after upgrading Hook Event Dispatcher

Created on 17 January 2023, almost 2 years ago
Updated 18 January 2023, almost 2 years ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.

TypeError: Argument 2 passed to Drupal\commerce_google_analytics\EventSubscriber\OrderSaveAnalyticsSubscriber::__construct() must be an instance of Drupal\Core\Extension\ModuleHandler, instance of Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\commerce_google_analytics\EventSubscriber\OrderSaveAnalyticsSubscriber->__construct() (line 51 of /var/www/web/modules/contrib/commerce_google_analytics/src/EventSubscriber/OrderSaveAnalyticsSubscriber.php) #0 /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\commerce_google_analytics\EventSubscriber\OrderSaveAnalyticsSubscriber->__construct()

On D 9.4.8 site withe the patches/mr detailed below every time we try to save GA data on orders, this error appears after upgrading hook_event_dispatcher module from 8.x-1.29 to 3.3.1

Steps to reproduce

To reproduce this error the following patches/merge request must be applied

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇪🇸Spain orodicio

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Closed: duplicate almost 2 years ago
Production build 0.71.5 2024