Circular reference detected for service

Created on 30 November 2017, about 7 years ago
Updated 12 June 2023, over 1 year ago

Hello,

I'm getting the following error message when running `drush cr`…


[error]  Circular reference detected for service "form_mode.manager", path: "form_mode.manager".

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "form_mode.manager", path: "form_mode.manager". in [error] /public/core/lib/Drupal/Component/DependencyInjection/Container.php:141
Stack trace:
#0 /public/modules/contrib/form_mode_manager/src/EntityTypeInfo.php(59): Drupal\Component\DependencyInjection\Container->get('form_mode.manag...')
#1 /public/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\form_mode_manager\EntityTypeInfo::create(Object(Drupal\Core\DependencyInjection\Container))
#2 /public/modules/contrib/form_mode_manager/form_mode_manager.module(27): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\\form_mod...')
#3 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(112): form_mode_manager_entity_type_build(Array)
#4 /public/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(174): Drupal\Core\Entity\EntityTypeManager->findDefinitions()
#5 /public/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#6 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(126): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('key_config_over...', false)
#7 /public/modules/contrib/key/src/KeyConfigOverrides.php(104): Drupal\Core\Entity\EntityTypeManager->getDefinition('key_config_over...', false)
#8 /public/modules/contrib/key/src/KeyConfigOverrides.php(34): Drupal\key\KeyConfigOverrides->getMapping()
#9 /public/core/lib/Drupal/Core/Config/ConfigFactory.php(209): Drupal\key\KeyConfigOverrides->loadOverrides(Array)
#10 /public/core/lib/Drupal/Core/Config/ConfigFactory.php(169): Drupal\Core\Config\ConfigFactory->loadOverrides(Array)
#11 /public/core/lib/Drupal/Core/Config/ConfigFactory.php(104): Drupal\Core\Config\ConfigFactory->doLoadMultiple(Array, true)
#12 /public/core/lib/Drupal/Core/Config/ConfigFactory.php(89): Drupal\Core\Config\ConfigFactory->doGet('form_mode_manag...')
#13 /public/modules/contrib/form_mode_manager/src/FormModeManager.php(279): Drupal\Core\Config\ConfigFactory->get('form_mode_manag...')
#14 /public/modules/contrib/form_mode_manager/src/FormModeManager.php(78): Drupal\form_mode_manager\FormModeManager->setFormModesToExclude()
#15 /public/core/lib/Drupal/Component/DependencyInjection/Container.php(278): Drupal\form_mode_manager\FormModeManager->__construct(Object(Drupal\Core\Entity\EntityTypeManager),
Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Entity\EntityDisplayRepository), Object(Drupal\Core\Entity\EntityTypeBundleInfo), Object(Drupal\form_mode_manager\EntityRoutingMapManager))
#16 /public/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'form_mode.manag...')
#17 /public/modules/contrib/form_mode_manager/src/EntityTypeInfo.php(59): Drupal\Component\DependencyInjection\Container->get('form_mode.manag...')
#18 /public/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\form_mode_manager\EntityTypeInfo::create(Object(Drupal\Core\DependencyInjection\Container))
#19 /public/modules/contrib/form_mode_manager/form_mode_manager.module(27): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\\form_mod...')
#20 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(112): form_mode_manager_entity_type_build(Array)
#21 /public/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(174): Drupal\Core\Entity\EntityTypeManager->findDefinitions()
#22 /public/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#23 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(126): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('block', false)
#24 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(233): Drupal\Core\Entity\EntityTypeManager->getDefinition('block')
#25 /public/core/lib/Drupal/Core/Entity/EntityTypeManager.php(169): Drupal\Core\Entity\EntityTypeManager->getHandler('block', 'storage')
#26 /public/core/modules/block/block.module(143): Drupal\Core\Entity\EntityTypeManager->getStorage('block')
#27 [internal function]: block_rebuild()
#28 /public/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('block_rebuild', Array)
#29 /public/core/includes/common.inc(1134): Drupal\Core\Extension\ModuleHandler->invokeAll('rebuild')
#30 /public/core/includes/utility.inc(52): drupal_flush_all_caches()
#31 /vendor/drush/drush/commands/core/cache.drush.inc(302): drupal_rebuild(Object(Composer\Autoload\ClassLoader), Object(Symfony\Component\HttpFoundation\Request))
#32 /vendor/drush/drush/includes/command.inc(422): drush_cache_rebuild()
#33 /vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#34 /vendor/drush/drush/includes/command.inc(199): drush_command()
#35 /vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#36 /vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#37 /vendor/drush/drush/drush.php(12): drush_main()
#38 {main}

I've tried to get the error to spit out more information about the error but so far have been unsuccessful.

Thanks,

β€’β€’ matt

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mattlt Freeport, MN

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024