TypeError: must be RequestStack, EntityTypeManager given

Created on 14 June 2023, about 1 year ago
Updated 12 July 2023, 12 months ago

Suddenly got this error lately that prevents SKUs to be added to cart (fortunately just on dev). Not sure what is going on, was working fine forever... did some recent updates broke some logic?

TypeError: Drupal\commerce_ajax_cart_message\EventSubscriber\CommerceAjaxCartMessageSubscriber::__construct(): Argument #3 ($request_stack) must be of type Symfony\Component\HttpFoundation\RequestStack, Drupal\Core\Entity\EntityTypeManager given, called in /Users/x/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\commerce_ajax_cart_message\EventSubscriber\CommerceAjaxCartMessageSubscriber->__construct() (line 26 of /Users/x/web/modules/contrib/commerce_ajax_cart_message/src/EventSubscriber/CommerceAjaxCartMessageSubscriber.php)

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇭🇺Hungary betarobot

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

Comments & Activities

Production build 0.69.0 2024