This module reports this Fatal Error when I installed Commerce module, and tried to add a product at this commerce page "/product/add/default":

Notice: Undefined index: form_display in /docroot/modules/contrib/field_group/field_group.module on line 111

Fatal error: Call to a member function getMode() on null in /docroot/modules/contrib/field_group/field_group.module on line 120

After fix this error with the posted patch, what this page "/product/add/default" is actually trying to do is just to display one markup and tell user this information "Products can't be created until a store has been added. Add a new store."

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smiletrl created an issue. See original summary.

smiletrl’s picture

Status: Active » Needs review
FileSize
1.38 KB

Check this patch

Andreas Radloff’s picture

Status: Needs review » Reviewed & tested by the community

I get the same error using another module and this patch fixes it for me.

nils.destoop’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
GoZ’s picture

Status: Closed (duplicate) » Active

This issue is not fixed by #2720287: Check if form mode is present before trying to extract field_group form information, we still have notice:

Notice: Undefined index: form_display in /docroot/modules/contrib/field_group/field_group.module on line 111

GoZ’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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