Active
Project:
String
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2025 at 10:31 UTC
Updated:
20 May 2025 at 19:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
d34dman commentedThe following code
$this->themeHandler->getThemeDirectories();in a Plugin manager is calling\Drupal::service('config.factory')->get('core.extension')somewhere down the lane. This apparently is resulting in circular dependency error.I have not yet figured out how the circular dependency is getting generator. However, doing something like
$a = \Drupal::service('config.factory')->get('core.extension');in https://git.drupalcode.org/project/string/-/blob/1.0.x/src/StringManager... results in this error.Not sure what is happening here.
Comment #3
d34dman commentedComment #5
d34dman commentedThis can be reproduced only when clearing cache using Drush. The error appears during alternate invocation of cache clear using drush. Probably some cache issue.
Clearing cache using Drupal's User Interface doesn't have this issue.
Comment #6
d34dman commentedUpdate:
The problem appears when running `updb` as well
This call seems to be causing the issue
The code at
https://git.drupalcode.org/project/symfony_mailer/-/blob/1.x/src/Process...
indicates by using \Drupal::service, the circular dependency should have been avoided.
Comment #7
d34dman commentedAttaching a temporary fix for those who wan't to unblock themselves