Closed (fixed)
Project:
LTI Tool Provider
Version:
3.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Sep 2024 at 12:18 UTC
Updated:
8 Jul 2026 at 21:15 UTC
Jump to comment: Most recent
When I enable all the lti_tool_provider modules, it shows up with:
The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "authentication_subscriber", path: "authentication_subscriber -> authentication -> authentication_collector -> authentication.lti_tool_provider.v1p3 -> lti_tool_provider.nonce.repository". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 239)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)Drupal 10.3.3, PHP 8.2
Comments
Comment #2
bob.hinrichs commentedFixed in 3.0.0. Root cause was the event dispatcher being injected into the LTI authentication providers, which forced the auth subscriber/collector to resolve during bootstrap and produced the 'authentication_subscriber' circular reference. In 3.0.x the
auth base class no longer constructor-injects @event_dispatcher — it resolves the dispatcher lazily via an eventDispatcher() accessor (see
src/Authentication/Provider/LTIToolProviderBase.php and its class docblock).
Note: 3.0.0 requires Drupal 10.3+/PHP 8.3+. Since this was reported on 10.3.3/PHP 8.2, using 3.0.0 directly needs PHP 8.3.
Comment #4
bob.hinrichs commented