Group 1/2/3 compataibility

Created on 10 July 2024, 5 months ago
Updated 16 August 2024, 4 months ago

Problem/Motivation

Attempting to make aliases work in group 2.x. This doesn't work and throws an error when trying to view the page, specifically:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "group_relationship_type" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 142 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\Core\Entity\EntityTypeManager->getHandler('group_relationship_type', 'storage') (Line: 195)
Drupal\Core\Entity\EntityTypeManager->getStorage('group_relationship_type') (Line: 26)
Drupal\group_relationship_tokens\GroupRelationshipTokensService->getConfiguredEntityTypes() (Line: 22)
group_relationship_tokens_token_info() (Line: 53)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}(Object, 'group_relationship_tokens') (Line: 396)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('token_info', Object) (Line: 68)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith('token_info', Object) (Line: 60)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll('token_info') (Line: 40)
Drupal\token\Token->getInfo() (Line: 121)
Drupal\token\Token->getGlobalTokenTypes() (Line: 184)
Drupal\token\Token->getInvalidTokensByContext(Array, Array) (Line: 271)
token_element_validate(Array, Object)

Proposed resolution

At the very least update module description to say what it is compatible with and add a composer.json file speciify it is only compatible with group 1.x

On the more fancy side of things... make a 2.0.x version and make it compatible with group 2.x I'd be possibly interested in tackling that.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jnicola

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

Comments & Activities

  • Issue created by @jnicola
  • πŸ‡©πŸ‡ͺGermany Hydra

    @jnicola Thx for your report. I updated the module page and created a 2.x branch. Feel free to work on this, I am willing to commit this or make you a co-maintainer for that if you'd like!

Production build 0.71.5 2024