The thunder_update_8301.yml (Thunder 3) thunder_update_8139.yml (Thunder 2) introduced in #3077672: Fix field_group update don't check whether the field groups group_basis and group_credits exists. In our installation they didn't, which resulted in broken default entity form. The resulting config changes look like following example:
--- a/config/sync/core.entity_form_display.media.image.default.yml
+++ b/config/sync/core.entity_form_display.media.image.default.yml
@@ -83,3 +83,9 @@ hidden:
langcode: true
path: true
uid: true
+third_party_settings:
+ field_group:
+ group_basis:
+ region: content
+ group_credits:
+ region: content
Error message on Manage form display page:
The website encountered an unexpected error. Please try again later.
Error: Unsupported operand types in Drupal\field_group\FieldGroupFormatterPluginManager->prepareConfiguration() (line 114 of modules/contrib/field_group/src/FieldGroupFormatterPluginManager.php).Drupal\field_group\FieldGroupFormatterPluginManager->prepareConfiguration(NULL, 'form', Array) (Line: 76)
Drupal\field_group\FieldGroupFormatterPluginManager->getInstance(Array) (Line: 504)
field_group_format_settings_form(Object, Array, Object) (Line: 155)
field_group_field_ui_display_form_alter(Array, Object) (Line: 169)
field_group_form_entity_form_display_edit_form_alter(Array, Object, 'entity_form_display_edit_form') (Line: 539)
There where also some Warnings and Notices:
Warning: Invalid argument supplied for foreach() in field_group_attach_groups() (line 495 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Warning: Invalid argument supplied for foreach() in field_group_form_process() (line 327 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$format_type in field_group_field_group_form_process() (line 373 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$format_settings in field_group_field_group_form_process() (line 376 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$weight in field_group_field_group_form_process() (line 380 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$format_type in field_group_field_group_form_process() (line 385 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$label in field_group_field_group_form_process() (line 386 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$format_settings in field_group_field_group_form_process() (line 386 in /app/public/drupal/modules/contrib/field_group/field_group.module).
Workaround:
1. Export config (drush cex)
2. Remove the third_party_settings:field_group-stuff from:
core.entity_form_display.media.gallery.default.yml
core.entity_form_display.media.image.default.yml
core.entity_form_display.media.instagram.default.yml
core.entity_form_display.media.pinterest.default.yml
core.entity_form_display.media.twitter.default.yml
core.entity_form_display.media.video.default.yml
3. Reimport config (drush cim)
Comments
Comment #4
daniel.bosenHi, thanks for reporting this, we have a fix for that in our current dev branch for Thunder 2. We will forward port that to Thunder 3 as well and do bugfix releases for both versions soon.
See: https://github.com/BurdaMagazinOrg/thunder-distribution/pull/736
Comment #5
daniel.bosenCrediting implementer and reviewer on github.
Comment #7
daniel.bosenPR for Thunder 3 https://github.com/thunder/thunder-distribution/pull/105
merged and ready for release. Thanks everyone!