Circular reference detected for service

Created on 1 April 2023, over 2 years ago

Problem/Motivation

Hi,
While uninstalling modules and having Business rules module installed got these error messages:

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "business_rules.processor", path: "business_rules.event_listener -> business_rules.processor -> business_rules.util -> eca.service.token -> eca.token_data.current_user". in Drupal\Component\DependencyInjection\Container->get() (line 147 of /var/www/html/site/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

The modules were uninstalled, and the site seems to be working after the business rules module was unistalled.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

1.1

Component

Code

Created by

🇫🇮Finland anaconda777

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

Comments & Activities

  • Issue created by @anaconda777
  • Status changed to Postponed: needs info over 2 years ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    This sounds like an edge case that may never occur ever again. Would you be OK if we closed this one as "Won't fix"?

  • 🇩🇪Germany Anybody Porta Westfalica

    FYI: We're running into the same error with random modules, I think this doesn't mean it's casued bei ECA, might be a core bug since 10.1.x. Never experienced this before.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    @Anybody can you please provide more details? The original issue is about business_rules, I'd like to understand which other modules you've seen with similar issues. And if so, are they only showing those issues in Drupal 10.1 and not in 10.0?

  • 🇩🇪Germany Anybody Porta Westfalica

    @jurgenhaas in our case it was: 🐛 Circular reference detected for service symfony mailer config override in multilingual sites Fixed
    As symfony_mailer is very widely used now, I think that may be the reason in most cases.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks @Anybody for the link to the other issue. Don't see any relation to ECA in that one. Do you have any circular dependency issues which involve ECA services?

  • Status changed to Closed: cannot reproduce about 2 years ago
  • 🇩🇪Germany Anybody Porta Westfalica

    @jurgenhaas sorry I think my comment was confusing. It was just the same error message, so I wanted to let you know here in #3 that ECO might *NOT* be causing this, someone just thought that, as the error appears when uninstalling *unrelated* modules (like propably ECA in that case or in our case reroute_email).

    I'll close this cannot reproduce as unrelated to the module that was uninstalled so.

  • 🇧🇷Brazil mauriciopieper

    In case anyone lands in this issue before Circular reference detected for service 💬 Circular reference detected for service Active . I applied the patch provided on that issue and it fixed the circular reference problem.

Production build 0.71.5 2024