Circular service dependencies when installing module

Created on 18 September 2024, 3 months ago
Updated 20 September 2024, 3 months ago

Problem/Motivation

    Circular reference detected for service "Drupal\Core\Logger\LoggerChannelFactoryInterface", path: "acqui  a_connector.subscription -> acquia_connector.client.factory -> Drupal\Core\Logger\LoggerChannelFactoryInterface -> workspaces.information -> Drupal\workspaces\WorkspaceAssociationInterface -> logger.channel.workspaces -> Drupal\Core\Logger\LoggerChannelFactoryInterface". 

This comes from logger.smartling that registers:

    calls:
      - [setConfigManager, ['@tmgmt_smartling.smartling_config_manager']]

Steps to reproduce

This is hard to reproduce. Sometimes it surfaces and sometimes it doesn't. I tried to reproduce on a vanilla install of drupal with workspaces and acquia_connector installed first, then installing this module. That didn't work. I then went back to the client site where this was happening and I couldn't reproduce this issue there either. But then our CI/CD test build caught it. So this will need to get fixed. I'm just not sure how/why to add appropriate test coverage for it.

Proposed resolution

Figure out another way to auto register the config manager during service invocation.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

heddn Nicaragua

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024