After buying a product
- Drupal version: 8.9.1
- drupal/bee: 1.1.0
The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\bee\EventSubscriber\OrderEventSubscriber::__construct() must implement interface Drupal\Core\Entity\EntityTypeManagerInterface, instance of Drupal\Core\Config\ConfigFactory given, called in /var/www/d8/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\bee\EventSubscriber\OrderEventSubscriber->__construct() (line 38 of modules/contrib/bee/src/EventSubscriber/OrderEventSubscriber.php).
Drupal\bee\EventSubscriber\OrderEventSubscriber->__construct(Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'bee.order_subscriber') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('bee.order_subscriber') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('commerce_order.place.pre_transition', Object) (Line: 353)
Drupal\state_machine\Plugin\Field\FieldType\StateItem->dispatchTransitionEvent('pre_transition') (Line: 314)
Drupal\state_machine\Plugin\Field\FieldType\StateItem->preSave() (Line: 233)
Drupal\Core\Field\FieldItemList->delegateMethod('preSave') (Line: 191)
Drupal\Core\Field\FieldItemList->preSave() (Line: 881)
Drupal\Core\Entity\ContentEntityStorageBase->invokeFieldMethod('preSave', Object) (Line: 831)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('presave', Object) (Line: 100)
Drupal\commerce\CommerceContentEntityStorage->invokeHook('presave', Object) (Line: 111)
Drupal\commerce_order\OrderStorage->invokeHook('presave', Object) (Line: 500)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 700)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object) (Line: 454)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 837)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 395)
Drupal\Core\Entity\EntityBase->save() (Line: 174)
Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowBase->redirectToStep('complete') (Line: 106)
Drupal\commerce_payment\Controller\PaymentCheckoutController->returnPage(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 42)
Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 44)
Drupal\services\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Please let me know what more information you could need.