Errors in the EventSubscriber when adding to cart

Created on 3 March 2025, 3 days ago

Problem/Motivation

Im having issues getting this working. I get this error when clicking the add to cart button.

ResponseText: The website encountered an unexpected error. Try again later.TypeError: Drupal\commerce_ajax_atc\EventSubscriber\AjaxCartEventSubscriber::__construct(): Argument #1 ($messenger) must be of type Drupal\Core\Messenger\MessengerInterface, Symfony\Component\HttpFoundation\RequestStack given, called in /Users/...../web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\commerce_ajax_atc\EventSubscriber\AjaxCartEventSubscriber->__construct() (line 36 of modules/contrib/commerce_ajax_atc/src/EventSubscriber/AjaxCartEventSubscriber.php). Drupal\Component\DependencyInjection\Container->createService(Array, 
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States loze Los Angeles

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024