Circular reference detected for service "cache.backend.database".

Created on 25 June 2024, 6 months ago

Problem/Motivation

Getting fatal error while updating Drupal core to 10.3.0.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "cache.backend.database", path: "http_kernel -> http_middleware.ajax_page_state -> http_middleware.negotiation -> http_middleware.reverse_proxy -> ban.middleware -> http_middleware.page_cache -> cache.page -> cache.backend.database -> Drupal\Component\Datetime\TimeInterface -> state -> cache.bootstrap". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Update the Drupal Core to 10.3.0

Proposed resolution

Issue fixed by removing the service from lightning_scheduler > lightning_scheduler.services.yml

  lightning_scheduler.datetime.time:
    public: false
    class: 'Drupal\lightning_scheduler\Time'
    decorates: datetime.time
    arguments:
      - '@request_stack'
      - '@state'

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India keshavv India

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