I get the following error whenever adding a new form display mode:

Warning: Invalid argument supplied for foreach() in field_group_info_groups() (line 663 of modules/contrib/field_group/field_group.module).
field_group_info_groups('node', 'my_content_type', 'form', 'default') (Line: 34)
field_group_field_ui_form_params(Array, Object) (Line: 81)
field_group_field_ui_display_form_alter(Array, Object) (Line: 125)
field_group_form_entity_form_display_edit_form_alter(Array, Object, 'entity_form_display_edit_form') (Line: 501)
Drupal\Core\Extension\ModuleHandler->alter(Array, Array, Object, 'entity_form_display_edit_form') (Line: 819)
Drupal\Core\Form\FormBuilder->prepareForm('entity_form_display_edit_form', Array, Object) (Line: 272)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
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}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
CommentFileSizeAuthor
#2 2872160.patch445 byteshyscaler
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nettantra created an issue. See original summary.

hyscaler’s picture

Status: Active » Patch (to be ported)
FileSize
445 bytes

  • zuuperman committed fed2c1d on 8.x-1.x authored by nettantra
    Issue #2872160 by nettantra: messageWarning: Invalid argument supplied...
nils.destoop’s picture

Status: Patch (to be ported) » Fixed

Thx for the patch. Committed to dev

  • zuuperman committed 329d670 on 8.x-3.x authored by nettantra
    Issue #2872160 by nettantra: messageWarning: Invalid argument supplied...

Status: Fixed » Closed (fixed)

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