Cannot create nodes when domain_group_alias is enabled

Created on 12 May 2023, over 1 year ago

Problem/Motivation

Get this error when trying to create a node:

[Fri May 12 18:18:09.375282 2023] [php:notice] [pid 97] [client 172.18.0.1:44322] TypeError: trim(): Argument #1 ($string) must be of type string, array given in /var/www/drupal/web/modules/contrib/domain_group/modules/domain_group_alias/src/DomainGroupAliasHelper.php on line 62 #0 /var/www/drupal/web/modules/contrib/domain_group/modules/domain_group_alias/src/DomainGroupAliasHelper.php(62): trim()\n#1 [internal function]: Drupal\\domain_group_alias\\DomainGroupAliasHelper::validateEntityForm()\n#2 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormValidator.php(82): call_user_func_array()\n#3 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormValidator.php(275): Drupal\\Core\\Form\\FormValidator->executeValidateHandlers()\n#4 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\\Core\\Form\\FormValidator->doValidateForm()\n#5 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(593): Drupal\\Core\\Form\\FormValidator->validateForm()\n#6 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\\Core\\Form\\FormBuilder->processForm()\n#7 /var/www/drupal/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\\Core\\Form\\FormBuilder->buildForm()\n#8 [internal function]: Drupal\\Core\\Controller\\FormController->getContentResult()\n#9 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()\n#10 /var/www/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#11 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\\Core\\Render\\Renderer->executeInRenderContext()\n#12 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()\n#13 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#14 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#15 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#16 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\\Core\\StackMiddleware\\Session->handle()\n#17 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle()\n#18 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\\page_cache\\StackMiddleware\\PageCache->pass()\n#19 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\page_cache\\StackMiddleware\\PageCache->handle()\n#20 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#21 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#22 /var/www/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\\StackedHttpKernel->handle()\n#23 /var/www/drupal/web/index.php(19): Drupal\\Core\\DrupalKernel->handle()\n#24 {main}, referer: http://group.hcpss.localhost:8553/node/add/page

Steps to reproduce

  1. On a fresh install enable domain_group and domain_group_alias modules.
  2. Create a basic page.
  3. when you save, you will get WSOD.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bander2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024