Circular reference detected for service "webprofiler.database_listener"

Created on 29 April 2024, 8 months ago

Problem/Motivation

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "webprofiler.database_listener", path: "webprofiler.database_listener -> webprofiler.database -> config.factory -> commerce_store_gateways.config_overrider -> commerce_store.current_store -> commerce_store.chain_store_resolver -> commerce_store.default_store_resolver". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Webprofiler for ECA 1 installed and enabled according to https://ecaguide.org/eca/debugging/#simple-mode-drupal-cores-database-lo...

Drupal\Component\DependencyInjection\Container->get('webprofiler.database_listener') (Line: 88)
Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object, NULL) (Line: 2150)
Drupal\Core\Database\Connection->dispatchEvent(Object) (Line: 115)
Drupal\Core\Database\StatementWrapperIterator->execute(Array, Array) (Line: 851)
Drupal\Core\Database\Connection->query('SELECT 1 FROM information_schema.tables WHERE ("table_schema" = :db_condition_placeholder_0) AND ("table_name" = :db_condition_placeholder_1)', Array) (Line: 176)
Drupal\Core\Database\Schema->tableExists('cache_bootstrap') (Line: 425)
Drupal\Core\Cache\DatabaseBackend->ensureBinExists() (Line: 202)
Drupal\Core\Cache\DatabaseBackend->setMultiple(Array) (Line: 182)
Drupal\Core\Cache\DatabaseBackend->set('hook_info', Array, -1, Array) (Line: 180)
Drupal\Core\Cache\ChainedFastBackend->set('hook_info', Array, -1, Array) (Line: 83)
Drupal\webprofiler\Cache\CacheBackendWrapper->set('hook_info', Array) (Line: 297)
Drupal\Core\Extension\ModuleHandler->getHookInfo() (Line: 631)
Drupal\Core\Extension\ModuleHandler->buildImplementationInfo('entity_type_build') (Line: 596)
Drupal\Core\Extension\ModuleHandler->getImplementationInfo('entity_type_build') (Line: 386)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_type_build', Object) (Line: 117)
Drupal\Core\Entity\EntityTypeManager->findDefinitions() (Line: 205)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('commerce_store', ) (Line: 132)
Drupal\Core\Entity\EntityTypeManager->getDefinition('commerce_store') (Line: 257)
Drupal\Core\Entity\EntityTypeManager->getHandler('commerce_store', 'storage') (Line: 88)
Drupal\webprofiler\Entity\EntityTypeManagerWrapper->getStorage('commerce_store') (Line: 26)
Drupal\commerce_store\Resolver\DefaultStoreResolver->__construct(Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'commerce_store.default_store_resolver') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('commerce_store.default_store_resolver', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'commerce_store.chain_store_resolver') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('commerce_store.chain_store_resolver', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'commerce_store.current_store') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('commerce_store.current_store', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'commerce_store_gateways.config_overrider') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('commerce_store_gateways.config_overrider', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'config.factory') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('config.factory', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'webprofiler.database') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('webprofiler.database', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'webprofiler.database_listener') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('webprofiler.database_listener') (Line: 88)
Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object, NULL) (Line: 2150)
Drupal\Core\Database\Connection->dispatchEvent(Object) (Line: 115)
Drupal\Core\Database\StatementWrapperIterator->execute(Array, Array) (Line: 851)
Drupal\Core\Database\Connection->query('SELECT [session] FROM {sessions} WHERE [sid] = :sid LIMIT 0, 1', Array, Array) (Line: 265)
Drupal\mysql\Driver\Database\mysql\Connection->queryRange('SELECT [session] FROM {sessions} WHERE [sid] = :sid', 0, 1, Array) (Line: 62)
Drupal\Core\Session\SessionHandler->read(Object) (Line: 80)
Drupal\Core\Session\WriteSafeSessionHandler->read('HgPky1j0oXvKIv34rZCZceLk8oyPIOELzU9Or2FpjWxl9rjX') (Line: 49)
Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->read(Object)
session_start() (Line: 172)
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (Line: 144)
Drupal\Core\Session\SessionManager->startNow() (Line: 109)
Drupal\Core\Session\SessionManager->start() (Line: 59)
Symfony\Component\HttpFoundation\Session\Session->start() (Line: 54)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\tracer\StackMiddleware\TracesMiddleware->handle(Object, 1, 1) (Line: 42)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ’¬ Support request
Status

Postponed: needs info

Version

2.0

Component

Store

Created by

πŸ‡ΈπŸ‡°Slovakia yurg

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

Comments & Activities

  • Issue created by @yurg
  • πŸ‡ΈπŸ‡°Slovakia yurg

    Additional Drush output

    $ ddev drush cr 
    PHP Fatal error:  Could not check compatibility between Drupal\webprofiler\Entity\GroupRelationshipTypeStorageDecorator::loadByGroupType(Drupal\webprofiler\Entity\GroupTypeInterface $group_type) and Drupal\group\Entity\Storage\GroupRelationshipTypeStorageInterface::loadByGroupType(Drupal\group\Entity\GroupTypeInterface $group_type), because class Drupal\webprofiler\Entity\GroupTypeInterface is not available in /var/www/html/web/sites/default/files/php/webprofiler/group_relationship_type/5HXngiDWe6IlMRJW-ClAlbhu78jCQXE2B5E74bEnGUc.php on line 11
    
    Fatal error: Could not check compatibility between Drupal\webprofiler\Entity\GroupRelationshipTypeStorageDecorator::loadByGroupType(Drupal\webprofiler\Entity\GroupTypeInterface $group_type) and Drupal\group\Entity\Storage\GroupRelationshipTypeStorageInterface::loadByGroupType(Drupal\group\Entity\GroupTypeInterface $group_type), because class Drupal\webprofiler\Entity\GroupTypeInterface is not available in /var/www/html/web/sites/default/files/php/webprofiler/group_relationship_type/5HXngiDWe6IlMRJW-ClAlbhu78jCQXE2B5E74bEnGUc.php on line 11
    
    
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    This is not ECA related. The dependency circle is between commerce and webprofiler, not sure which of those needs to address this. Moving to commerce for now.

  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States rszrama

    Really no clue, I've never used the webprofiler module ... but if there's a circular reference, can definitely confirm it isn't a regular issue in Commerce sites. πŸ˜…

Production build 0.71.5 2024