Error: Class "Drupal\amazon_product_widget\EventSubscriber\AmazonApiSubscriber" not found

Created on 22 November 2023, over 1 year ago

Problem/Motivation

Added the module on a drupal 10 installation and I am getting this error:

Error: Class "Drupal\amazon_product_widget\EventSubscriber\AmazonApiSubscriber" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get('amazon_product_widget.ajax_sanitizer.subscriber') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 157)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 124)
Drupal\cloudflare\CloudFlareMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install the module on drupal 10.

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇷🇴Romania ciprian.stavovei

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

Comments & Activities

  • Issue created by @ciprian.stavovei
  • 🇸🇮Slovenia miha.wagner

    Hi @ciprian.stavovei I installed amazon_product_widget 1.5.10 on Drupal 10.1.6 and I did not get this error. Not on install or any of the configuration pages.

    We are using the module on a pretty big site and didn't experience this also when updating to the 1.5.10 version. Because I can't reproduce it on a fresh install, or on an active site I'm downgrading the priority to normal.

    Did you get this resolved? If so, how? Was it a caching issue? If not, does it happen on config import / install, drush en, or where do you get this error? Site-wide?

    Thanks and have a nice day.

  • Status changed to Closed: cannot reproduce 3 months ago
  • 🇸🇮Slovenia miha.wagner

    Could not reproduce this issue, and no activity for more than one year so will close it.

Production build 0.71.5 2024