Circular references on enabling fastly module

Created on 28 March 2022, over 2 years ago
Updated 20 February 2024, 10 months ago

Problem/Motivation

I have a site with domain enabled. However I'm not sure if this would make a difference as the core route service provider would have the same issue.

on enabling the fastly module I get

"domain.route_provider", path: "drush.command.services -> drupal.commands -> domain.route_provider -> cache_tags.inva  
>   lidator -> fastly.cache_tags.invalidator -> fastly.api -> logger.channel.fastly -> logger.factory -> logger.syslog -> router -> router.no_access_checks

Looking at this chain, I think we may have to change what is injected and what is created. (For what it is worth I did this with the logger and then the router was an issue.

I'm on Drupal 9.3

Steps to reproduce

Download and enable fastly

Proposed resolution

Change some services to be taken from the container when needed rather than injected.

I'll probably roll a patch for this as I need it to work.

šŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

šŸ‡¬šŸ‡§United Kingdom JeremyFrench

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • As you are on 9.3 please try the 4.0.x branch.

  • šŸ‡«šŸ‡®Finland operinko

    I'm seeing the same issue on 4.x branch, on a site running a multisite installation using Domain module.

    ā”‚ php [2023-11-02T13:05:58.175283+02:00] php.ERROR: Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "domain.route_provider", path: "options_request_listener -> domain.route_provider -> cache_tags ā”‚
    ā”‚ .invalidator -> fastly.cache_tags.invalidator -> fastly.api -> fastly.services.webhook -> router -> router.no_access_checks". in Drupal\Component\DependencyInjection\Container->get() (line 147 of /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Containe ā”‚
    ā”‚ r.php). {"severity_level":3,"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException(code: 0): Circular reference detected for service \"domain.route_provider\", path: \"options_request_listener -> domain.route_provi ā”‚
    ā”‚ der -> cache_tags.invalidator -> fastly.cache_tags.invalidator -> fastly.api -> fastly.services.webhook -> router -> router.no_access_checks\". at /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php:147)"} {"referer":"","ip":"[ip_redacted]"," ā”‚
    ā”‚ request_uri":"https://[domain_redacted]/","uid":0,"user":""}                                                                                                                                                                                              ā”‚
    ā”‚ php NOTICE: PHP message: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: "Circular reference detected for service "domain.route_provider", path: "options_request_listener -> domain.route_provider -> cache_tags. ā”‚
    ā”‚ invalidator -> fastly.cache_tags.invalidator -> fastly.api -> fastly.services.webhook -> router -> router.no_access_checks"." at /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php line 147
  • Status changed to Needs work about 1 year ago
  • šŸ‡­šŸ‡·Croatia xSDx

    @operinko
    This looks like something possibly related to domain module instead of fastly module.
    There were at least 2 issues on domain and domain site settings module reported for similar issues:
    https://www.drupal.org/project/domain/issues/3005048 ā†’ and https://www.drupal.org/project/domain_site_settings/issues/2930391 ā†’
    Can you check those if it helps you out ? Tnx

  • Status changed to Postponed: needs info 10 months ago
  • šŸ‡­šŸ‡·Croatia xSDx
Production build 0.71.5 2024