The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "domain.loader". Did you mean this: "domain.token"? in Drupal\Component\DependencyInjection\Container->get() (line 153 of core/lib/Drupal/Component/DependencyInjection/Container.php).
I was receiving this error when attempting to view /admin/config/domain/domain_theme_switch/config. I found this issue at https://www.drupal.org/project/domain/issues/2918229 and updated the code accordingly. Patch in next comment.
Comments
Comment #2
bsuttis commentedHere's the patch against 8.x-1.x-dev.
Comment #3
chris.smith commentedI was using the stable release and experienced the same issue. Here is the patch for 8.x-1.4.
Comment #4
chris.smith commentedLet's try that again. Ignore #3.
Comment #5
tichris59 commentedPatch #4 works for me , thanks !
(Domain 8.x-1.0-beta2 )
Comment #6
Edwin KnolPatch #4 worked for me.
Comment #7
maacl commentedPatch #4 fixes the Error for me, too.
Comment #8
david.chevillet commentedIf it's necessary yet : #4 works for me too !
Comment #9
fabianderijk#4 works perfectly!Scratch that remark. The patch won't apply on the dev version of the module. I will create a new patch.
Comment #10
fabianderijkHere's the new patch that works against the dev version of the module. Please review.
Comment #11
markusa commentedPatch in #4 worked for me
Comment #12
freddy rodriguezI have this one applied and is working perfect:
"You have requested a non-existent service domain.loader": "https://www.drupal.org/files/issues/2020-06-20/3126737-8.patch"
Comment #13
NitraM commentedPatch in #10 on dev worked for me, thanks!
Comment #15
abrammThank you guys; committed the fix.