[WORKAROUND] Another (different) circular reference detected between filecache and syslog

Created on 20 April 2020, over 4 years ago
Updated 14 October 2023, 12 months ago

I have a similar problem of https://www.drupal.org/project/filecache/issues/3045245
Tested also the patch but it doesn't solve the issue

The difference is that compared to the above issue which happens by activating syslog, in my case it also occurs with the module not installed.

My error message:
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "cache.backend.file_system", path: "http_kernel -> http_middleware.negotiation -> http_middleware.reverse_proxy -> http_middleware.page_cache -> cache.page -> cache.backend.file_system -> file_system -> logger.channel.file -> logger.factory -> logger.syslog -> config.factory -> config.storage -> cache.config". in Drupal\Component\DependencyInjection\Container->get() (line 143 of /Users/Advscraper/Sites/devdesktop/drupal-8.8.5/core/lib/Drupal/Component/DependencyInjection/Container.php)

I must specify two things:
- Test setting for the filecache directory seems to work since it creates files in the correct directory
$settings['filecache']['directory']['default'] = '/users/advscraper/sites/devdesktop/filecache';
I report here the content of one of the two files under the 'filecache/config' subfolder since it contains reference to syslog (I'm not an expert, so I don't know if it's important):
O:8:"stdClass":6:{s:3:"cid";s:15:"syslog.settings";s:4:"data";a:4:{s:8:"identity";s:6:"drupal";s:8:"facility";i:128;s:6:"format";s:72:"!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message";s:5:"_core";a:1:{s:19:"default_config_hash";s:43:"vdXLRPZRg35PBykBRRXr6RTql5EJR_fUi2kxyZ8c5m0";}}s:6:"expire";i:-1;s:4:"tags";a:0:{}s:7:"created";d:1587368519.674;s:8:"checksum";i:0;}

- Test override to specific cache bins also work without errors:
$settings['cache']['bins']['entity'] = 'cache.backend.file_system';
$settings['cache']['bins']['page'] = 'cache.backend.file_system';

It remain the problem of '$settings['cache']['default'] = 'cache.backend.file_system'; which I hope it can be solved.

I hope that what I've reported can help and thanks to those who can help me

💬 Support request
Status

Active

Component

Code

Created by

🇮🇹Italy senzaesclusiva

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.

Production build 0.71.5 2024