- Status changed to Closed: duplicate
almost 2 years ago 7:55am 18 January 2023
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
To reproduce this error the following patches/merge request must be applied
Closed: duplicate
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.