TypeError: Argument 2 passed to Drupal\eca_content\HookHandler::prepareForm() must be of the type string, null given
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3343459. --> Reported by: [djdevin](https://www.drupal.org/user/701754) Related to !311 >>> <p>This happens with the following modules enabled, not yet sure which should be fixed:</p> <p>eca_content<br> webform<br> metatags_webform</p> <p>1. Enable all the modules<br> 2. Create a webform<br> 3. Go to Settings -&gt; Metatags</p> <p>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-&gt;prepareForm() (line 165 of modules/contrib/eca/modules/content/src/HookHandler.php).</p> <p>Drupal\eca_content\HookHandler-&gt;prepareForm() (Line: 160)<br> eca_content_entity_prepare_form() (Line: 393)<br> Drupal\Core\Entity\EntityForm-&gt;Drupal\Core\Entity\{closure}() (Line: 405)<br> Drupal\Core\Extension\ModuleHandler-&gt;invokeAllWith() (Line: 394)<br> Drupal\Core\Entity\EntityForm-&gt;prepareInvokeAll() (Line: 128)<br> Drupal\Core\Entity\EntityForm-&gt;init() (Line: 96)<br> Drupal\Core\Entity\EntityForm-&gt;buildForm()<br> call_user_func_array() (Line: 534)<br> Drupal\Core\Form\FormBuilder-&gt;retrieveForm() (Line: 281)<br> Drupal\Core\Form\FormBuilder-&gt;buildForm() (Line: 73)<br> Drupal\Core\Controller\FormController-&gt;getContentResult()<br> call_user_func_array() (Line: 123)<br> Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 580)<br> Drupal\Core\Render\Renderer-&gt;executeInRenderContext() (Line: 124)<br> Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext() (Line: 97)<br> Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 169)<br> Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw() (Line: 81)<br> Symfony\Component\HttpKernel\HttpKernel-&gt;handle() (Line: 68)<br> Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap-&gt;handle() (Line: 58)<br> Drupal\Core\StackMiddleware\Session-&gt;handle() (Line: 48)<br> Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle() (Line: 106)<br> Drupal\page_cache\StackMiddleware\PageCache-&gt;pass() (Line: 85)<br> Drupal\page_cache\StackMiddleware\PageCache-&gt;handle() (Line: 48)<br> Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle() (Line: 51)<br> Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle() (Line: 23)<br> Stack\StackedHttpKernel-&gt;handle() (Line: 713)<br> Drupal\Core\DrupalKernel-&gt;handle() (Line: 19)</p>
issue