Circular reference detected for service

Created on 25 September 2024, about 2 months ago

Problem/Motivation

After updating from Drupal 11.0.1 to Drupal 11.0.4 (together with updating some modules), any of the following errors display when trying to do anything:

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "hook_event_dispatcher.module_handler", path: "hook_event_dispatcher.module_handler -> http_kernel -> http_middleware.ajax_page_state -> http_middleware.negotiation -> http_middleware.reverse_proxy -> ban.middleware -> http_middleware.page_cache -> http_middleware.content_length -> http_middleware.kernel_pre_handle -> http_middleware.session -> http_kernel.basic -> http_kernel.controller.argument_resolver -> entity_model.argument_resolver -> config.factory -> config.typed".

Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "http_kernel.controller.argument_resolver", path: "plugin.cache_clearer -> plugin.manager.menu.local_action -> http_kernel.controller.argument_resolver -> entity_model.argument_resolver -> http_kernel -> http_middleware.ajax_page_state -> http_middleware.negotiation -> http_middleware.reverse_proxy -> ban.middleware -> http_middleware.page_cache -> http_middleware.content_length -> http_middleware.kernel_pre_handle -> http_middleware.session -> http_kernel.basic".

Proposed resolution

Stop injecting @config.factory in the entity_model.argument_resolver service.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024