Errors upgrading from 1.6 -> 2.2.2 (views)

Created on 16 January 2024, about 1 year ago

Problem/Motivation

Updating a site running PHP 8.2, Drupal 10.2.1 and Group 1.6.
Having gnode module enabled and several custom views using relationship "Content Group content" (group_content) and "Group Content content) (gc__node). The group module native views "group_members" and "group_nodes" use the above relationships too.

While running the database update after the upgrade tp group 2.2.2. the following warnings/errors appear:

>  [notice] Update started: group_update_9200
>  [notice] Update completed: group_update_9200
>  [notice] Update started: group_update_9201
>  [notice] Update completed: group_update_9201
>  [notice] Update started: group_update_9202
>  [notice] Update completed: group_update_9202
>  [notice] Update started: group_update_9203
>  [warning] Undefined array key "gc__node" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The group_members view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "gc__node" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The group_nodes view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "gc__node" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The custom_current_members view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "gc__node" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The custom_items view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "relationship" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The custom_options_results view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "relationship" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The custom_results view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [warning] Undefined array key "relationship" HandlerBase.php:724
>  [warning] Trying to access array offset on value of type null HandlerBase.php:724
>  [error]  The custom_members view could not be updated automatically while processing an entity schema update for the group_content entity type.
>  [notice] Update completed: group_update_9203
>  [notice] Update started: group_update_9204
>  [notice] Update completed: group_update_9204
>  [notice] Update started: group_update_9205
>  [notice] Update completed: group_update_9205
>  [notice] Update started: group_update_9206
>  [notice] Update completed: group_update_9206
>  [notice] Update started: group_update_9207
>  [notice] Update completed: group_update_9207
>  [notice] Update started: group_update_9208
>  [notice] Update completed: group_update_9208
>  [notice] Update started: group_update_9209
>  [notice] Update completed: group_update_9209
>  [notice] Update started: group_update_9210
>  [notice] Update completed: group_update_9210
>  [notice] Checked de translation for flexible_permissions.
>  [notice] Downloaded de translation for flexible_permissions.
>  [notice] Imported de translation for flexible_permissions.
>  [notice] Translations imported: 2 added, 0 updated, 0 removed.
>  [warning] No configuration objects have been updated.
 [success] Finished performing updates.

On a clean install without any custom views the updates run without errors.
However, as we are early adopters of the group module, we used group since rc3 and have custom views.
Any idea about what to research further, so the errors are narrowed down and can be easily reproduced?

Steps to reproduce

TBD

πŸ’¬ Support request
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria jordik

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

Comments & Activities

Production build 0.71.5 2024