'field_group_posts_enabled' not found in social_group_flexible_group_update_11701

Created on 12 April 2023, about 1 year ago

Problem/Motivation

I'm trying to upgrade a site from goalgorilla/open_social 11.6.0 to a version that includes a recent Drupal core.

However that fails on 'field_group_posts_enabled' not found in the database update social_group_flexible_group_update_11701 which was introduced in #3348199: Flexible groups are not properly updated after field_group_posts_enabled was introduced β†’

Updating to 11.8.2 or 11.7.5 has the same effect.

Steps to reproduce

#3348199: Flexible groups are not properly updated after field_group_posts_enabled was introduced β†’ lists a number of steps, but I do not know what's different in our situation.

Proposed resolution

I guess that field_group_posts_enabled still needed to be created, or it's existence should be checked first.

On a staging site I added a boolean field called 'group_posts_enabled' via /admin/group/types/manage/flexible_group/fields/add-field
That seems to have solved it. The db updates then continued, with warnings though:

>  [notice] Update started: social_group_flexible_group_update_11701
>  [warning] Undefined array key 0 social_group_flexible_group.install:564
>  [warning] Trying to access array offset on value of type null social_group_flexible_group.install:564
>  [notice] Post for group members was disabled for 4 flexible groups (ids): 36, 47, 52, 56
>  [notice] Update completed: social_group_flexible_group_update_11701
 [success] Finished performing updates.
 [success] Cache rebuild complete.

Remaining tasks

Is my workaround correct?

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

11.8

Component

Code (back-end)

Created by

πŸ‡³πŸ‡±Netherlands helmo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024