Strange error with older user account only - ECA User module

Created on 8 March 2024, 7 months ago
Updated 1 August 2024, about 2 months ago

I'm getting the following error but only with an older user account. It only happens for this one account as far as I can tell. When the error occurred, i disabled all eca models and cleared cache but the error was still occurring which didn't make much sense. I had several ECA plug in modules activated and I narrowed down the issue to the eca user module. As soon as I disable that, the error goes away. Any thoughts?

The website encountered an unexpected error. Try again later.

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "eca.processor", path: "eca_user.subscriber -> eca.processor -> eca.configurable_logger_channel -> eca.token_services -> eca.service.token -> eca.token_data.views_row -> eca.execution.views_row_subscriber". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.execution.views_row_subscriber') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.execution.views_row_subscriber', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.token_data.views_row') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.token_data.views_row', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.service.token') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.service.token', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.token_services') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.token_services') (Line: 129)
Drupal\eca\Plugin\ECA\EcaPluginBase::create(Object, Array, 'content_entity:preload', Array) (Line: 19)
Drupal\eca\Plugin\ECA\Event\EventBase::create(Object, Array, 'content_entity:preload', Array) (Line: 62)
Drupal\eca_content\Plugin\ECA\Event\ContentEntityEvent::create(Object, Array, 'content_entity:preload', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('content_entity:preload', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('content_entity:preload') (Line: 65)
Drupal\eca\Event\TriggerEvent->dispatchFromPlugin('content_entity:preload', Array, 'user') (Line: 152)
Drupal\eca_content\HookHandler->preload(Array, 'user') (Line: 62)
eca_content_entity_preload(Array, 'user')
call_user_func_array(Object, Array) (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'eca_content') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_preload', Object) (Line: 408)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_preload', Array) (Line: 605)
Drupal\Core\Entity\ContentEntityStorageBase->preLoad(Array) (Line: 295)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 262)
Drupal\Core\Entity\EntityStorageBase->load('47') (Line: 50)
Drupal\user\ContextProvider\CurrentUserContext->getRuntimeContexts(Array) (Line: 79)
Drupal\user\ContextProvider\CurrentUserContext->getAvailableContexts() (Line: 89)
Drupal\Core\Plugin\Context\LazyContextRepository->getAvailableContexts() (Line: 141)
Drupal\Core\ParamConverter\EntityConverter->convert('17', Array, 'node', Array) (Line: 100)
Drupal\Core\ParamConverter\ParamConverterManager->convert(Array) (Line: 45)
Drupal\Core\Routing\Enhancer\ParamConversionEnhancer->enhance(Array, Object) (Line: 270)
Drupal\Core\Routing\Router->applyRouteEnhancers(Array, Object) (Line: 150)
Drupal\Core\Routing\Router->matchRequest(Object) (Line: 90)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 144)
Drupal\Core\Routing\AccessAwareRouter->match('/node/17') (Line: 138)
Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin->isAdminPath(Object) (Line: 104)
Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin->getLangcode(Object) (Line: 197)
Drupal\language\LanguageNegotiator->negotiateLanguage('language_interface', 'language-user-admin') (Line: 137)
Drupal\language\LanguageNegotiator->initializeType('language_interface') (Line: 218)
Drupal\language\ConfigurableLanguageManager->getCurrentLanguage() (Line: 237)
Drupal\domain_config\DomainConfigOverrider->initiateContext() (Line: 120)
Drupal\domain_config\DomainConfigOverrider->loadOverrides(Array) (Line: 209)
Drupal\Core\Config\ConfigFactory->loadOverrides(Array) (Line: 169)
Drupal\Core\Config\ConfigFactory->doLoadMultiple(Array, 1) (Line: 68)
Drupal\domain_config_ui\Config\ConfigFactory->doLoadMultiple(Array, 1) (Line: 104)
Drupal\Core\Config\ConfigFactory->doGet('eca.settings', 1) (Line: 109)
Drupal\domain_config_ui\Config\ConfigFactory->doGet('eca.settings') (Line: 89)
Drupal\Core\Config\ConfigFactory->get('eca.settings') (Line: 100)
Drupal\eca\ConfigurableLoggerChannel->__construct('eca', Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.configurable_logger_channel') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.configurable_logger_channel', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca.processor') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca.processor', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'eca_user.subscriber') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('eca_user.subscriber') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'account.set') (Line: 65)
Drupal\Core\Session\AccountProxy->setAccount(Object) (Line: 79)
Drupal\Core\EventSubscriber\AuthenticationSubscriber->onKernelRequestAuthenticate(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 111)
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: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->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

Closed: outdated

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davemaxg

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

Comments & Activities

  • Issue created by @davemaxg
  • πŸ‡ΊπŸ‡ΈUnited States davemaxg

    The point with the older user account that I meant to mention was that the account existed before eca was installed.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    This is really strange, especially because it only seems to happen for one specific user only? Dependencies are usually rebuilt after a cache reset, but that process is user independent. So, I wonder, what is the user actually doing on the site, when this error occurs?

    Could this be related to a special view? In the dependency path, there are 2 services from the eca_views_data_export module, which is a third party module and not part of ECA itself. However, we're using that module as well and don't see this bug. Could you please try and disable that module and see if the error is then gone away?

  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • Status changed to Closed: outdated about 2 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
Production build 0.71.5 2024