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

bsuttis created an issue. See original summary.

bsuttis’s picture

Here's the patch against 8.x-1.x-dev.

chris.smith’s picture

Version: 8.x-1.x-dev » 8.x-1.4
StatusFileSize
new672 bytes

I was using the stable release and experienced the same issue. Here is the patch for 8.x-1.4.

chris.smith’s picture

StatusFileSize
new3.3 KB

Let's try that again. Ignore #3.

tichris59’s picture

Patch #4 works for me , thanks !
(Domain 8.x-1.0-beta2 )

Edwin Knol’s picture

Patch #4 worked for me.

maacl’s picture

Assigned: bsuttis » Unassigned
Status: Active » Reviewed & tested by the community

Patch #4 fixes the Error for me, too.

david.chevillet’s picture

If it's necessary yet : #4 works for me too !

fabianderijk’s picture

#4 works perfectly!

Scratch that remark. The patch won't apply on the dev version of the module. I will create a new patch.

fabianderijk’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new3.48 KB

Here's the new patch that works against the dev version of the module. Please review.

markusa’s picture

Patch in #4 worked for me

freddy rodriguez’s picture

I 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"

NitraM’s picture

Patch in #10 on dev worked for me, thanks!

  • abramm committed 80cb239 on 8.x-1.x authored by bsuttis
    Issue #3126750 by chris.smith, bsuttis, fabianderijk: Use entity type...
abramm’s picture

Status: Needs review » Fixed

Thank you guys; committed the fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.