Circular dependency detected

Created on 25 January 2023, almost 2 years ago
Updated 11 April 2023, over 1 year ago

Problem/Motivation

When module freshly installed, durring cache clear issue appears.

In Container.php line 147:
                                                                               
  Circular reference detected for service "hook_event_dispatcher.module_handl  
  er", path: "hook_event_dispatcher.module_handler -> hook_event_dispatcher.m  
  anager -> event_dispatcher -> tracer.tracer -> tracer.tracer_factory -> plu  
  gin.manager.tracer". 

Steps to reproduce

  • Install module via composer.
  • Enable module.
  • Clear cache with drush cache:rebuild
  • Error in console should be printed out.
🐛 Bug report
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇱🇹Lithuania Gerardas Vilnius

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

Comments & Activities

  • Issue created by @Gerardas
  • Assigned to nivethitha
  • 🇮🇳India nivethitha

    This is an issue with Symfony Dependency Injection component on version 5.3.7.

    Just add this to your composer.json:

    "conflict": {
        "symfony/dependency-injection": "5.3.7"
    },

    This way you can keep the rest of the dependencies updated, and it will just exclude DI 5.3.7 in favour of 5.3.6.

  • 🇬🇧United Kingdom dakala Fairford, Glos

    Yeah, but it's still happening in DI v6.2.7

  • 🇬🇧United Kingdom dakala Fairford, Glos

    It seems this has to do with Tracer module (a dependency of Webprofiler) which I had just enabled before seeing the error in this issue. I managed to uninstall both Webprofiler and Tracer and the issue disappeared.

  • Issue was unassigned.
  • Status changed to Closed: works as designed over 1 year ago
  • 🇦🇺Australia dpi Perth, Australia
Production build 0.71.5 2024