Error accessing group "Set available content" setting

Created on 13 March 2025, 29 days ago

Problem/Motivation

Trying to access a group's "Set available content" setting page (e.g., /admin/group/types/manage/lms_course/content) results in an error:

Error: Call to undefined function Drupal\group\Plugin\Group\RelationHandlerDefault\field_ui_entity_operation() in Drupal\group\Plugin\Group\RelationHandlerDefault\OperationProvider->getOperations() (line 78 of modules/contrib/group/src/Plugin/Group/RelationHandlerDefault/OperationProvider.php).

This seems to be an error that the Group module throws when there is no group content type set. According to this comment 🐛 Error when trying to set available content. Needs work there should always be a group content type.

Steps to reproduce

Standard setup from https://github.com/graber-1/drupal_lms_ddev with test content. Visit the page mentioned above, either directly or via the Group Types page.

Proposed resolution

Should we add a dummy group content type to prevent this error?

🐛 Bug report
Status

Active

Version

1.0

Component

Other backend

Created by

🇨🇦Canada ob3ron Canada

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

Comments & Activities

Production build 0.71.5 2024