CircularReferenceException when trying to install wse_config

Created on 30 October 2024, 7 months ago

Problem/Motivation

I've tried to test Workspaces Extras. When I've installed the wse_config submodule I ran into the following error:

The website encountered an unexpected error. Try again later.

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "config.factory", path: "language_request_subscriber -> language_manager -> config.factory -> wse_config.storage -> entity_type.manager -> string_translation -> string_translator.locale.lookup". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 273)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 445)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 454)
Drupal\Component\DependencyInjection\Container->Drupal\Component\DependencyInjection\{closure}() (Line: 243)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 955)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 821)
Drupal\Core\DrupalKernel->updateModules() (Line: 634)
Drupal\Core\Extension\ModuleInstaller->updateKernel() (Line: 255)
Drupal\Core\Extension\ModuleInstaller->install() (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() (Line: 504)
Drupal\system\Form\ModulesListForm->submitForm()
call_user_func_array() (Line: 105)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 43)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 589)
Drupal\Core\Form\FormBuilder->processForm() (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 593)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

  • Spun up a fresh instance of Drupal 11.x in DDEV (PHP8.3) with the demo_umami install profile
  • installed wse
  • installed wse_config

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany rkoller Nürnberg, Germany

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

Merge Requests

Comments & Activities

  • Issue created by @rkoller
  • 🇮🇳India abhishek@kumar

    If any custom service uses config.factory, ensure that it uses dependency injection in a way that doesn’t create a circular loop. Specifically, look for any direct calls to \Drupal::service('config.factory') and replace them with dependency injection.
    For example

    public function __construct(ConfigFactoryInterface $configFactory) {
      $this->configFactory = $configFactory;
    }
  • First commit to issue fork.
  • Pipeline finished with Canceled
    2 months ago
    Total: 90s
    #448518
  • Pipeline finished with Failed
    2 months ago
    Total: 219s
    #448519
  • Pipeline finished with Skipped
    2 months ago
    #448525
    • amateescu committed fc741520 on 2.0.x
      Issue #3484535 by amateescu: CircularReferenceException when trying to...
  • Pipeline finished with Success
    2 months ago
    Total: 233s
    #448524
    • amateescu committed 090e9f65 on 1.0.x
      Issue #3484535 by amateescu: CircularReferenceException when trying to...
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Running
    about 1 month ago
    #466909
  • Pipeline finished with Success
    about 1 month ago
    Total: 179s
    #467736
  • Pipeline finished with Failed
    24 days ago
    #480067
  • Pipeline finished with Failed
    19 days ago
    Total: 910s
    #483958
  • Pipeline finished with Success
    10 days ago
    #491042
  • Pipeline finished with Success
    10 days ago
    Total: 162s
    #491285
  • Pipeline finished with Failed
    about 12 hours ago
    Total: 384s
    #499486
  • Pipeline finished with Failed
    about 11 hours ago
    Total: 876s
    #499502
  • Pipeline finished with Failed
    about 11 hours ago
    Total: 534s
    #499517
  • Pipeline finished with Failed
    about 10 hours ago
    Total: 414s
    #499542
  • Pipeline finished with Failed
    about 8 hours ago
    Total: 498s
    #499587
  • Pipeline finished with Failed
    about 8 hours ago
    Total: 522s
    #499599
  • Pipeline finished with Failed
    about 8 hours ago
    Total: 645s
    #499604
  • Pipeline finished with Success
    about 6 hours ago
    Total: 591s
    #499632
  • Pipeline finished with Success
    about 3 hours ago
    Total: 647s
    #499704
Production build 0.71.5 2024