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."
Comment | File | Size | Author |
---|---|---|---|
#2 | condition-check-for-form-alter-2755093-1.patch | 1.38 KB | smiletrl |
Comments
Comment #2
smiletrl CreditAttribution: smiletrl commentedCheck this patch
Comment #3
Andreas Radloff CreditAttribution: Andreas Radloff commentedI get the same error using another module and this patch fixes it for me.
Comment #4
nils.destoop CreditAttribution: nils.destoop as a volunteer and at Wunder commentedThis issue was fixed in #2720287: Check if form mode is present before trying to extract field_group form information
Comment #5
GoZ CreditAttribution: GoZ at Barbe-Rousse for Niji commentedThis issue is not fixed by #2720287: Check if form mode is present before trying to extract field_group form information, we still have notice:
Comment #6
GoZ CreditAttribution: GoZ at Barbe-Rousse for Niji commentedMy bad, issue is fixed by commit https://www.drupal.org/commitlog/commit/16266/db5594cfad662203d7f2c082cf...