Problem/Motivation

Currently, when you visit /admin/config/domain/alias/{domain}/add and you have the webprofiler module enabled, you get the following error:

TypeError: Argument 4 passed to Drupal\domain_alias\DomainAliasForm::__construct() must implement interface Drupal\domain_alias\DomainAliasStorageInterface, instance of Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator given, called in /modules/contrib/domain/domain_alias/src/DomainAliasForm.php on line 92 in Drupal\domain_alias\DomainAliasForm->__construct() (line 73 of modules/contrib/domain/domain_alias/src/DomainAliasForm.php).
Drupal\domain_alias\DomainAliasForm->__construct(Object, Object, Object, Object, Object) (Line: 92)
Drupal\domain_alias\DomainAliasForm::create(Object) (Line: 28)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\domain_alias\DomainAliasForm') (Line: 226)
Drupal\Core\Entity\EntityTypeManager->getFormObject('domain_alias', 'default') (Line: 177)
Drupal\webprofiler\Entity\EntityManagerWrapper->getFormObject('domain_alias', 'default') (Line: 57)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 30)
Drupal\domain_alias\Controller\DomainAliasController->addAlias(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 572)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

JeroenT created an issue. See original summary.

JeroenT’s picture

JeroenT’s picture

ocastle’s picture

I also get the same issue.

I can confirm the suggested changes in the PR solved the issue for me.

agentrickard’s picture

Nice work!

agentrickard’s picture

Status: Needs review » Fixed

Committed!

I've been away on vacation...

JeroenT’s picture

No problem. I Hope you enjoyed your vacation 😉

Status: Fixed » Closed (fixed)

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