Error when installing from Project Browser

Created on 8 February 2025, about 2 months ago

Error while installing package(s)

Error: Class "Drupal\commerce_cart\Event\CartEvents" not found

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

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

Comments & Activities

  • Issue created by @dalra
  • And if we want to uninstall anything:

    The website encountered an unexpected error. Try again later.
    Error: Class "Drupal\commerce_cart\Event\CartEvents" not found in Drupal\commerce_cart_redirection\EventSubscriber\CommerceCartRedirectionSubscriber::getSubscribedEvents() (line 60 of modules/contrib/commerce_cart_redirection/src/EventSubscriber/CommerceCartRedirectionSubscriber.php).

    Drupal\commerce_cart_redirection\EventSubscriber\CommerceCartRedirectionSubscriber::getSubscribedEvents() (Line: 207)
    Symfony\Component\EventDispatcher\DependencyInjection\ExtractingEventDispatcher::getSubscribedEvents() (Line: 162)
    Symfony\Component\EventDispatcher\EventDispatcher->addSubscriber() (Line: 149)
    Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass->process() (Line: 29)
    Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass->process() (Line: 73)
    Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 814)
    Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1380)
    Drupal\Core\DrupalKernel->compileContainer() (Line: 899)
    Drupal\Core\DrupalKernel->initializeContainer() (Line: 505)
    Drupal\Core\DrupalKernel->boot() (Line: 707)
    Drupal\Core\DrupalKernel->handle() (Line: 19)

  • 🇳🇿New Zealand andyd328 Lyttelton, NZ 🇳🇿

    Hi dalra,

    Sorry for the delay getting back to you.

    You can get this error when the commerce_cart module isn't installed, I'll add the commerce_cart dependency to the next release.

Production build 0.71.5 2024