Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#18 | circular_reference-2710787-18.patch | 1.99 KB | lussoluca |
| |||
#17 | Screenshot 2017-01-02 17.01.55.png | 182.02 KB | tormu |
#12 | stack-trace-#12.txt | 7.36 KB | Echofive |
#14 | enabled-modules-#14.txt | 5.59 KB | Echofive |
Comments
Comment #2
OnkelTem CreditAttribution: OnkelTem commentedComment #3
OnkelTem CreditAttribution: OnkelTem commentedComment #4
lussolucaOn which core version?
Comment #5
OnkelTem CreditAttribution: OnkelTem commentedDrupal version is 8.0.5, which I specified above, if that's what you're asking...
Comment #6
leif98 CreditAttribution: leif98 commentedI have also tried to install the webprofiler and it bricked my website. I am currently on 8.1.0
Comment #7
OnkelTem CreditAttribution: OnkelTem commented@leif98
Seems like a different issue.
Comment #8
lussolucaSorry I cannot reproduce this with both 8.0.5 and 8.1.3.
Feel free to reopen it if it occurs again.
Comment #9
Joao Informatico madrid CreditAttribution: Joao Informatico madrid commentedHi.
I have exactly the same problem
Comment #10
louis.roy CreditAttribution: louis.roy commentedGetting similar results here on Drupal 8.1.8 :
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "access_manager", path: [error]
"plugin.cache_clearer -> plugin.manager.menu.local_action -> access_manager -> paramconverter_manager -> webprofiler.token_converter -> profiler ->
webprofiler.views -> views.executable -> views.views_data -> router". in
/Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php:147
Stack trace:
#0 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('access_manager', 1)
#1 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#2 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'router')
#3 /Users/me/Projects/project/core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php(91):
Drupal\Component\DependencyInjection\Container->get('router')
#4 /Users/me/Projects/project/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21):
Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'language-user-a...',
Array)
#5 /Users/me/Projects/project/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(84):
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('language-user-a...', Array)
#6 /Users/me/Projects/project/core/modules/language/src/LanguageNegotiator.php(210):
Drupal\Component\Plugin\PluginManagerBase->createInstance('language-user-a...', Array)
#7 /Users/me/Projects/project/core/modules/language/src/LanguageNegotiator.php(186):
Drupal\language\LanguageNegotiator->getNegotiationMethodInstance('language-user-a...')
#8 /Users/me/Projects/project/core/modules/language/src/LanguageNegotiator.php(131):
Drupal\language\LanguageNegotiator->negotiateLanguage('language_interf...', 'language-user-a...')
#9 /Users/me/Projects/project/core/modules/language/src/ConfigurableLanguageManager.php(218):
Drupal\language\LanguageNegotiator->initializeType('language_interf...')
#10 /Users/me/Projects/project/core/modules/views/src/ViewsData.php(107): Drupal\language\ConfigurableLanguageManager->getCurrentLanguage()
#11 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(280):
Drupal\views\ViewsData->__construct(Object(Drupal\webprofiler\Cache\CacheBackendWrapper), Object(Drupal\webprofiler\Config\ConfigFactoryWrapper),
Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\language\ConfigurableLanguageManager))
#12 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'views.views_dat...')
#13 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('views.views_dat...', 1)
#14 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#15 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'views.executabl...')
#16 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('views.executabl...', 1)
#17 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#18 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'webprofiler.vie...')
#19 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('webprofiler.vie...', 1)
#20 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#21 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'profiler')
#22 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('profiler', 1)
#23 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#24 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'webprofiler.tok...')
#25 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('webprofiler.tok...', 1)
#26 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#27 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'paramconverter_...')
#28 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('paramconverter_...', 1)
#29 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#30 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'access_manager')
#31 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('access_manager', 1)
#32 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#33 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'plugin.manager....')
#34 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('plugin.manager....', 1)
#35 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(329):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#36 /Users/me/Projects/project/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'plugin.cache_cl...')
#37 /Users/me/Projects/project/core/lib/Drupal/Core/Extension/ModuleInstaller.php(200):
Drupal\Component\DependencyInjection\Container->get('plugin.cache_cl...')
#38 /Users/me/Projects/project/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array,
true)
#39 /usr/local/Cellar/drush/8.1.3/libexec/commands/core/drupal/environment.inc(131): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#40 /usr/local/Cellar/drush/8.1.3/libexec/commands/core/drupal/environment.inc(198): drush_module_install(Array)
#41 /usr/local/Cellar/drush/8.1.3/libexec/commands/pm/pm.drush.inc(1167): drush_module_enable(Array)
#42 /usr/local/Cellar/drush/8.1.3/libexec/includes/command.inc(373): drush_pm_enable('webprofiler')
#43 /usr/local/Cellar/drush/8.1.3/libexec/includes/command.inc(224): _drush_invoke_hooks(Array, Array)
#44 /usr/local/Cellar/drush/8.1.3/libexec/includes/command.inc(192): drush_command('webprofiler')
#45 /usr/local/Cellar/drush/8.1.3/libexec/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#46 /usr/local/Cellar/drush/8.1.3/libexec/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#47 /usr/local/Cellar/drush/8.1.3/libexec/drush.php(12): drush_main()
#48 {main}
Comment #11
reekris CreditAttribution: reekris commentedI'm reopening this since it seems people still have this problem. I'm also experiencing this issue when installing Webprofiler on 8.1.8 with Devel 8.x-1.0-alpha1. Getting same stack trace as above, and it bricks my site completely, I have to restore a backup to get it running again.
Seems like it only happens if I have the views module installed while installing Webprofiler. Commenting out the following code in
WebprofilerServiceProvider.php
makes the installation work:Comment #12
Echofive CreditAttribution: Echofive commentedHello,
I confirm the post #11 of reekris.
I try to install the Web Profiler and I get the same error.
If I put the (above) part of code into a PHP comment, I can install the module.
I also confirm that the fact to enable the module with this piece of code "executed" create an error (see just below) and the web site is unavailable.
If the Web Profiler module install fail, I get the uploaded stack trace.
I use Drupal 8.2.2 (commit: 71894fa) and Devel 8.x-1.0-alpha1 (datestamp: 1466782415) with PHP 7.0.12
Note that I use Drush to install the module.
So, to temporary fix this issue.
/modules/contrib/devel/webprofiler/src/WebprofilerServiceProvider.php, line 42 to 52.
I hope that this can help somebody to understand this error.
Thanks to reekris ;)
Kind regards,
Echofive
Comment #13
lussolucaThe weird thing is that from the stack trace it seems that views.views_data depends on router but I cannot find any evidence of this in code. Devel is the only contrib module do you have installed or there are something more?
Comment #14
Echofive CreditAttribution: Echofive commentedHi lussoluca,
Thanks for your reply.
No, there is other contrib + custom modules used, our project is under development.
I join the list of all enabled modules (core + contrib).
For some confidentiality reasons, I can't show the custom modules.
If you have an idea, let me know ;)
Kind regards,
Echofive
Comment #15
lussolucaCould you please look into the modules you have installed for classes with name ending in "ServiceProvider"?
If found, does any of this classes do something with views.views_data service?
Thanks
Comment #16
hupu CreditAttribution: hupu commentedI have the same issue, but I solved the problem by running /update.php (even if there is nothing to update in the db) after the installation of webprofiler.
Comment #17
tormu CreditAttribution: tormu commentedI had the alpha1 installed but the profiler was not enabled - just Devel. Now I updated to beta1, ran drush updb and tried to enable the profiler - the site crashes.
Error seems to be the same Circular reference detected for service "access_manager", path: "plugin.cache_clearer -> plugin.manager.menu.local_action -> access_manager -> paramconverter_manager -> webprofiler.token_converter -> profiler -> webprofiler.views -> views.executable -> views.views_data -> router"
..and after navigating to for example /admin I get Route "webprofiler.settings" does not exist - and this now happens everywhere. Uninstalling module reverts the site in working order again.
Searched the modules/contrib for anything related to "ServiceProvider", attached the shot - am I providing anything useful? No custom modules that contain the same string anywhere. Not at all familiar with OOP so not sure how to provide more info. I searched all the six files for "views_data" but that didn't pop out in any of those files.
The site is a Commerce site (with commerce beta5) if that might provide any help on what the stack might be.
Comment #18
lussolucaI've found the problem: it is an hidden dependency that pops-up only when more that 2 languages are enabled AND the "Account administration pages" language negotiation is enabled.
The language module (from core) replace the LanguageManager with ConfigurableLanguageManager that in turn loads all language negotiations plugins. One of that (the language-user-admin one) ask for the router service and cause the circular reference.
The only solution that I see is to remove the dependency in Webprofiler.
Comment #20
lussolucaCommitted and pushed to 8.x-1.x