Closed (fixed)
Project:
System Tags
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Sep 2017 at 13:01 UTC
Updated:
2 Nov 2017 at 12:29 UTC
Jump to comment: Most recent
When executing drush cim I get the following error:
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: [error]
Circular reference detected for service "entity_type.manager", path:
"plugin.cache_clearer -> entity_type.manager -> string_translation ->
string_translator.locale.lookup -> config.factory ->
system_tags.system_page_config_overrider -> system_tags.system_tag_helper ->
entity_field.manager". in
/vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php:147
Stack trace:
#0 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('entity_type.man...', 1)
#1 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#2 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'entity_field.ma...')
#3 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('entity_field.ma...', 1)
#4 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#5 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'system_tags.sys...')
#6
/vagrant/htdocs/modules/contrib/system_tags/src/SystemTagFinder/SystemTagFinderPluginBase.php(67):
Drupal\Component\DependencyInjection\Container->get('system_tags.sys...')
#7 /vagrant/htdocs/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21):
Drupal\system_tags\SystemTagFinder\SystemTagFinderPluginBase::create(Object(Drupal\Core\DependencyInjection\Container),
Array, 'system_tag_node...', Array)
#8 /vagrant/htdocs/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(84):
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('system_tag_node...', Array)
#9
/vagrant/htdocs/modules/contrib/system_tags/src/SystemTagFinder/SystemTagFinderManager.php(36):
Drupal\Component\Plugin\PluginManagerBase->createInstance('system_tag_node...')
#10
/vagrant/htdocs/modules/contrib/system_tags/src/Config/SystemPageConfigOverrider.php(31):
Drupal\system_tags\SystemTagFinder\SystemTagFinderManager->getInstance(Array)
#11 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(268):
Drupal\system_tags\Config\SystemPageConfigOverrider->__construct(Object(Drupal\system_tags\SystemTagFinder\SystemTagFinderManager))
#12 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'system_tags.sys...')
#13 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('system_tags.sys...', 1)
#14 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#15 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'config.factory')
#16 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('config.factory', 1)
#17 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#18 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'string_translat...')
#19 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('string_translat...', 1)
#20 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#21 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'string_translat...')
#22 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('string_translat...', 1)
#23 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#24 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'entity_type.man...')
#25 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('entity_type.man...', 1)
#26 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#27 /vagrant/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array,
'plugin.cache_cl...')
#28 /vagrant/htdocs/core/lib/Drupal/Core/Extension/ModuleInstaller.php(200):
Drupal\Component\DependencyInjection\Container->get('plugin.cache_cl...')
#29 /vagrant/htdocs/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83):
Drupal\Core\Extension\ModuleInstaller->install(Array, false)
#30 /vagrant/htdocs/core/lib/Drupal/Core/Config/ConfigImporter.php(786):
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
#31 /vagrant/htdocs/core/lib/Drupal/Core/Config/ConfigImporter.php(551):
Drupal\Core\Config\ConfigImporter->processExtension('module', 'install',
'advagg_js_minif...')
#32 /vagrant/htdocs/core/lib/Drupal/Core/Config/ConfigImporter.php(488):
Drupal\Core\Config\ConfigImporter->processExtensions(Array)
#33 phar:///usr/bin/drush/commands/core/config.drush.inc(684):
Drupal\Core\Config\ConfigImporter->doSyncStep('processExtensio...', Array)
#34 phar:///usr/bin/drush/includes/drush.inc(725):
_drush_config_import(Object(Drupal\Core\Config\StorageComparer))
#35 phar:///usr/bin/drush/includes/drush.inc(711):
drush_call_user_func_array('_drush_config_i...', Array)
#36 phar:///usr/bin/drush/commands/core/config.drush.inc(655):
drush_op('_drush_config_i...', Object(Drupal\Core\Config\StorageComparer))
#37 phar:///usr/bin/drush/includes/command.inc(422): drush_config_import()
#38 phar:///usr/bin/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#39 phar:///usr/bin/drush/includes/command.inc(199): drush_command()
#40 phar:///usr/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#41 phar:///usr/bin/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#42 phar:///usr/bin/drush/includes/startup.inc(458): drush_main()
#43 phar:///usr/bin/drush/includes/startup.inc(365): drush_run_main(false, '/', 'Phar
detected. ...')
#44 phar:///usr/bin/drush/drush(114): drush_startup(Array)
#45 /usr/bin/drush(10): require('phar:///usr/bin...')
#46 {main}
Comments
Comment #2
jeroentComment #3
lammensj commentedComment #5
lammensj commentedComment #6
lammensj commentedDue to the FieldManager-dependency in the SystemPageHelper, you receive a ServiceCircularReferenceException. This also occurs when you have a multilingual website (service: language_manager).
The "fix" was to remove the SystemTagFinderManager as a dependency from the SystemPageConfigOverrider and to load it via the global Drupal-object.
Comment #8
lammensj commented