Problem/Motivation
I tried updating from 1.2.1 to the latest dev version (568495c194161b43a0a6941b7e1e5f31e6605ded). However, I'm getting the following error when I run drush cr
:
Circular reference detected for service "entity_type.manager", path: "asset.css.collection_optimizer -> asset.css.
dumper -> file_system -> entity_type.manager -> string_translation -> string_translator.locale.lookup -> config.fa
ctory -> plugin.manager.email_builder".
If I revert to 1.2.1, I can clear the cache normally.
I have a multilingual site with two languages installed; I'm only using core i18n modules for translation. I can provide more detailed config if needed.
Comment | File | Size | Author |
---|---|---|---|
#11 | symfony_mailer.circular-reference.3355846-11.patch | 5.94 KB | AdamPS |
Comments
Comment #2
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedThanks for the report. I was getting a lot of similar errors and I believe I fixed them with this commit. Please can you check if you still see the error with the latest dev version?
Comment #3
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedShould be fixed as described in #2. Please re-open if you still hit the bug with the latest release
Comment #4
ptmkenny CreditAttribution: ptmkenny commentedThanks, I can confirm this is fixed in the current dev version!
Comment #5
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedDon't know exactly if this is the same issue, but when i am trying to enable the symfony_mailer module in its 1.x-dev version i get the following error:
Comment #6
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedComment #7
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedComment #8
titouillesame problem as megadesk3000 on #5. After upgrading to 1.3.0-beta1, I can't add new modules if symfony_mailer is enabled, it cause a Circular reference detected error :
downgrading to 1.2.1 resolve the problem.
Comment #9
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedThanks for the reports. It's not exactly the same issue, because it's no longer related to drush. The cause seems to be multi-language sites - which my test sites are not, so I don't hit it. Strange how each error message is slightly different from the others.
Comment #10
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedThis was caused by #3315358: Allow full management of override plugins.
Probably the fix is something like this, partly undoing some changes in the above issue:
MailerConfigOverride
with tagconfig.factory.override
, and remove that tag fromEmailBuilderManager
. Although this class usesEmailBuilderManager
, it should not have it injected as that causes the loop.MailerConfigOverride::loadOverrides()
has a hard-coded test to ignore certain entries that are used during initialisation and would cause a loop, probably "core.extension", "symfony_mailer.settings" (see earlier patch that was later revised to the current code). Then it calls\Drupal::service('plugin.manager.email_builder')->loadOverrides()
.Comment #11
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedPlease can everyone seeing this bug please test this patch?
Comment #12
hswong3i CreditAttribution: hswong3i at PantaRei Design Limited (Hong Kong) commented@AdamPS confirm #11 working for my DruStack, see https://github.com/drustack/composer-project-website-skeleton/commit/6dd...
Once patch applied and `drush -y cr`, site up and running once again, able to enable other else modules with no issue.
Thank you very much ;-)
Comment #13
hswong3i CreditAttribution: hswong3i at PantaRei Design Limited (Hong Kong) commentedComment #15
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedGreat thanks
Comment #17
trickfun CreditAttribution: trickfun commentedI get same error but I can't apply the patch with dev and 1.3.0-rc1 version.
thank you
Comment #18
kaszarobertI met the same problem by installing 1.3.0-rc1 and running drush commands later.
Comment #19
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedIs the following issue related?
#3370109: Circular reference detected for service symfony mailer config override in multilingual sites
Comment #20
kreatIL CreditAttribution: kreatIL commentedSame or similar issue here after upgrading to 1.3.0-rc1 on Drupal 9.5.10 and PHP 8.1.16