TypeError: Argument 2 passed to Drupal\eca_content\HookHandler::prepareForm() must be of the type string, null given

Created on 21 February 2023, almost 2 years ago
Updated 1 March 2023, over 1 year ago

This happens with the following modules enabled, not yet sure which should be fixed:

eca_content
webform
metatags_webform

1. Enable all the modules
2. Create a webform
3. Go to Settings -> Metatags

TypeError: Argument 2 passed to Drupal\eca_content\HookHandler::prepareForm() must be of the type string, null given, called in /vagrant/www/next/web/modules/contrib/eca/modules/content/eca_content.module on line 160 in Drupal\eca_content\HookHandler->prepareForm() (line 165 of modules/contrib/eca/modules/content/src/HookHandler.php).

Drupal\eca_content\HookHandler->prepareForm() (Line: 160)
eca_content_entity_prepare_form() (Line: 393)
Drupal\Core\Entity\EntityForm->Drupal\Core\Entity\{closure}() (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 394)
Drupal\Core\Entity\EntityForm->prepareInvokeAll() (Line: 128)
Drupal\Core\Entity\EntityForm->init() (Line: 96)
Drupal\Core\Entity\EntityForm->buildForm()
call_user_func_array() (Line: 534)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 281)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 713)
Drupal\Core\DrupalKernel->handle() (Line: 19)

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

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

Comments & Activities

Production build 0.71.5 2024