Circular reference detected for service "cache.backend.file_system", path: "module_handler -> cache.bootstrap -> cache.backend.file_system -> file_system -> logger.channel.file -> logger.factory -> logger.syslog -> config.factory -> config.storage -> cache.config".
Comments
Comment #2
pfrenssenThanks for the report. Can you give some more information about how to replicate this problem? Does it happen on a clean installation? Which modules do you have enabled?
Comment #3
krystalcode commentedThe issue occurs when the SysLog module is enabled.
Patch with possible solution: https://www.drupal.org/project/drupal/issues/3103620
Comment #4
basvredeling@pfrenssen I have the same problem. The patch @krystalcode solves the problem (after an extra drush cr). Default installation of filecache with syslog module enabled will probably result in the fatal error.
Comment #5
senzaesclusiva commentedSorry to reopen this issue.
I've a similar problem on a local (Acquia Dev Desktop) fresh Drupal 8.8.5/PHP 7.2.18 installation (the only one installed module is Admin Toolbar, and syslog is not enabled)
After enabling module and adding '$settings['cache']['default'] = 'cache.backend.file_system'; in settings.php, site crashes with message "The website encountered an unexpected error. Please try again later"
In the readme file is written "File Cache will try to create the directories for you. If you manually create
them, make sure that the owner is set to the same user as used by the web
server, and its permissions are set to 700 (owner can do anything, others are
not allowed to access the directory)" but in dblog i have this error message: "Exception: No path has been configured for the file system cache backend. in Drupal\filecache\Cache\FileSystemBackendFactory->getPathForBin() (line 106 of /Users/Advscraper/Sites/devdesktop/drupal-8.8.1/modules/filecache/src/Cache/FileSystemBackendFactory.php)"
How could I fix it?
Thanks for your help
Comment #6
pfrenssen@senzaesclusiva, your error message is different. This is about a circular dependency between the syslog module and filecache, yours is about not having the
filecache_pathsentry defined in settings.php. Please open a separate issue so this can stay on topic.Comment #7
pfrenssenThis indeed seems to be caused by a bug in the core syslog module and is not the fault of filecache. Closing this, anyone experiencing this problem, please subscribe to #3103620: Dependency on config storage causes circular reference in service container and try the patch in that issue.