Circular reference exception triggered while enabling the module

Created on 9 October 2023, about 1 year ago

Problem/Motivation

Circular reference exception triggered while enabling the module on Drupal 10.1.4 & 10.1.5.

The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "serializer", path: "rest.resource_response.subscriber -> serializer -> serialization.exception.default". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Enable module "RESTful Web Services" in UI on 'example.com/admin/modules'.

Can anyone reproduce this or is it just at my side?

🐛 Bug report
Status

Closed: cannot reproduce

Version

10.1

Component
REST 

Last updated about 1 month ago

Created by

🇨🇿Czech Republic XSramik

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

Comments & Activities

  • Issue created by @XSramik
  • Status changed to Postponed: needs info about 1 year ago
  • Unfortunately I cannot reproduce the bug by installing Drupal 10.1.5 and enabling the module. That doesn't mean there isn't a bug. It just means that there are more steps to reproduce that need documenting. Please add to the issue description all the steps needed to reproduce the bug.

    This seems related to 💬 Symfony upgrade leads to circular dependency Postponed: needs info , which is unresolved due to lack of information.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇨🇿Czech Republic XSramik

    Hello Cilefen, thank you for looking into it so quickly. Despite the log message, the problem was within another module which implements CSV serialization in (likely) outdated way. I just replaced that module and everything works well.

    I am closing this as the 'rest.module' works as should.

Production build 0.71.5 2024