Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This module prevents being able to install config_translation module because of circular reference error #1

Closed
pyrello opened this issue Aug 17, 2022 · 0 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@pyrello
Copy link
Contributor

pyrello commented Aug 17, 2022

Motivation

When attempting to enable the config_translation module, I received the following error:

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "entity_type.manager", path: "entity_type.manager -> string_translation -> string_translator.locale.lookup -> config.factory -> uiowa_auth.samlauth_override". in Drupal\Component\DependencyInjection\Container->get() (line 146 of core/lib/Drupal/Component/DependencyInjection/Container.php).

I think this means that the following is an issue:

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
$this->entityTypeManager = $entityTypeManager;
}

Here is an issue for the Domain module where they solved a similar issue: https://www.drupal.org/project/domain_site_settings/issues/2930391. It isn't immediately clear from the patch how it might apply to our situation, but maybe there is something in the discussion that might help.

Proposed solution

It seems like we might not be able to use the entity_type.manager service to get the list of roles. Or mine the above link for ideas about what needs to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant