Symfony upgrade leads to circular dependency

Created on 30 July 2023, 11 months ago
Updated 20 November 2023, 7 months ago

Problem/Motivation

First I tried to install the metatag module. That created a bug: https://www.drupal.org/project/metatag/issues/3378033 πŸ› Installing failed on 10.1 Closed: cannot reproduce

Then when I removed the metatag module, I started seeing this error. Perhaps this was connected to running "composer upgrade" and watching symfony go from 6.3.1 to 6.3.2?

I'm reporting this here because it mentions the jsonapi serializer, but it is probably connected to the upgrade. Perhaps.

TIA.


The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "serializer", path: "jsonapi.resource_response.subscriber -> jsonapi.serializer -> serializer -> serialization.exception.default". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get() (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 224)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 89)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

πŸ’¬ Support request
Status

Closed: duplicate

Version

10.1 ✨

Component
JSON APIΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

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

Comments & Activities

  • Issue created by @bogdog400
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    Looking at those service definitions in YAML files there is not a circular dependency in an ordinary installation. Have you tried executing drush cr?

  • πŸ‡ΊπŸ‡ΈUnited States bogdog400

    1) drush cr didn't work. It wouldn't even run. I can't recall the error message.

    2) I didn't know enough to look at the yaml files. But that also means that I didn't inadvertently make a mistake while editing them because I didn't touch them.

    3) Some of this is moot now because I replaced the server image with a backup. I didn't have time to do too much debugging. Maybe I'll be able to recreate this problem later when trying to understand it.

    Thanks.... If anyone wants me to test any particular theories, I'm happy to start up a new version of the backup image, apply the updates, and test the outcome.

    Just let me know.

  • Status changed to Postponed: needs info 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
  • Status changed to Closed: duplicate 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen
Production build 0.69.0 2024