Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to create a new text format filter, get the following error:
Warning: Invalid argument supplied for foreach() in Drupal\Component\Utility\NestedArray::mergeDeepArray() (line 327 of core/lib/Drupal/Component/Utility/NestedArray.php).
Drupal\Component\Utility\NestedArray::mergeDeepArray(Array) (Line: 295)
Drupal\Component\Utility\NestedArray::mergeDeep(NULL, Array) (Line: 310)
Drupal\markdown\Form\SettingsForm->buildParser(Array, Object) (Line: 269)
Drupal\markdown\Form\SettingsForm->processSubform(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 999)
Drupal\Core\Form\FormBuilder->doBuildForm('filter_format_add_form', Array, Object) (Line: 1062)
Drupal\Core\Form\FormBuilder->doBuildForm('filter_format_add_form', Array, Object) (Line: 1062)
Drupal\Core\Form\FormBuilder->doBuildForm('filter_format_add_form', Array, Object) (Line: 1062)
Drupal\Core\Form\FormBuilder->doBuildForm('filter_format_add_form', Array, Object) (Line: 563)
Drupal\Core\Form\FormBuilder->processForm('filter_format_add_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment | File | Size | Author |
---|---|---|---|
#2 | 3136419-2.patch | 728 bytes | mikejw |
Comments
Comment #2
mikejw CreditAttribution: mikejw commentedComment #4
markhalliwellI went ahead and simplified it to a simple ternary condition instead of adding 6 extra lines.