'set available content' selection on group type causes error

Created on 20 March 2025, 2 months ago

Problem/Motivation

When attempting to set up group media, I receive an error when clicking set available content on the group type.
The error received is:
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 /app/docroot/modules/contrib/group/src/Plugin/Group/RelationHandlerDefault/OperationProvider.php).

Steps to reproduce

Install groups 3x
create group type
Install groupmedia 4x
go to group type and click set available content
receive error

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rreedy Michigan

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

Comments & Activities

  • Issue created by @rreedy
  • πŸ‡§πŸ‡ͺBelgium lobsterr

    This code comes from group module:

          // This could be in its own decorator, but then it would live in a module
          // of its own purely for field_ui support. So let's keep it here.
          if ($this->moduleHandler->moduleExists('field_ui')) {
            $relationship_type = $this->entityTypeManager()->getStorage('group_relationship_type')->load($relationship_type_id);
            $operations += field_ui_entity_operation($relationship_type);
          }
    

    field_ui_entity_operation comes from field_ui module. Are you sure it is available ?

  • πŸ‡ΊπŸ‡ΈUnited States rreedy Michigan

    Hi @lobsterr yes the field_ui module is available. It does appear that this error happens without the group media module being enabled as well, so I think this particular issue can be closed...as I think it's a Group module issue

  • πŸ‡©πŸ‡ͺGermany geek-merlin Freiburg, Germany
Production build 0.71.5 2024