compitable with group 3.x

Created on 9 April 2024, 7 months ago
Updated 15 July 2024, 4 months ago

I try this module with group 3.x installed, there is error:
As far as I know, the group 3.x changed the group_content entity type to group_relationship, see here:
https://www.drupal.org/project/group/releases/3.0.0-beta1

Drupal\Core\Database\DatabaseExceptionWrapper:Drupal\yasm\Services\GroupsStatistics->countGroupsByUser() 中的 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.group_content_field_data' doesn't exist: SELECT count(DISTINCT gid) as count FROM "group_content_field_data" WHERE entity_id = :uid AND type LIKE :content; Array ( [:uid] => 1 [:content] => %group_membership ) (/var/www/html/docroot/modules/contrib/yasm/src/Services/GroupsStatistics.php 的第 36 行)。

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇳China zterry95

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

Comments & Activities

  • Issue created by @zterry95
  • 🇺🇸United States jdearie

    I'm getting the same error with Group 4.x and YASM 4.0.5

  • 🇺🇸United States jdearie

    I tested replacing group_content_field_data with group_relationship_field_data and drupal.group_content__group_role with group_relationship__group_role in GroupStatistics.php and it worked.

    I'll see if I can create a patch a post it here.

Production build 0.71.5 2024