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.
After updating to the latest dev of commons groups I receive the following error, while creating or updating an group:
Notice: Undefined index: field_og_subscribe_settings in locale_field_entity_form_submit() (line 438 of /mnt/srv/htdocs/house/modules/locale/locale.module).
Notice: Undefined index: field_og_access_default_value in locale_field_entity_form_submit() (line 438 of /mnt/srv/htdocs/house/modules/locale/locale.module).
Comment | File | Size | Author |
---|---|---|---|
#4 | remove-privacy-settings-wrapper-2039619-4.patch | 2.27 KB | Devin Carlson |
#1 | remove-privacy-settings-wrapper-2039619-1.patch | 2.15 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedThis is caused by
commons_groups_form_group_node_form_alter()
unsetting$form['field_og_subscribe_settings']
.While this could be solved by using
'#access' => FALSE
, I don't believe that thefield_og_subscribe_settings
field needs to be wrapped in a fieldset at all, so the attached patch removes the wrapper completely.Comment #2
slowflyer CreditAttribution: slowflyer commentedThanks!
The patch worked for me!
Comment #3
ezra-g CreditAttribution: ezra-g commentedAdding this issue to the 3.4 radar.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedA reroll of #1.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedTested #4 with an existing Commons install and didn't run into any errors when creating or updating groups with or without the locale module enabled. I also didn't come across any issues caused by OG Access being enabled or disabled.
Committed #4 to Commons 7.x-3.x.
http://drupalcode.org/project/commons.git/commit/2f674d7