field.storage.group_content.group_roles missing on install

Created on 26 February 2025, about 1 month ago

Problem/Motivation

Install permisions
Unable to install Anu LMS Permissions due to unmet dependencies: field.field.group_content.group_content_type_fe06a1151d30b.group_roles (field.storage.group_content.group_roles)

Shouldn't the roles be put into place through the installation process not left empty?

Fresh Drupal 11.1.3

🐛 Bug report
Status

Needs work

Version

2.11

Component

Code

Created by

🇨🇦Canada netgeek123

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

Comments & Activities

  • Issue created by @netgeek123
  • 🇨🇦Canada netgeek123

    Turns out there is a missing yml file in the install.

    Place this in /anu_lms/modules/anu_lms_permissions/config/install/field.storage.group_content_group_role.yml

    langcode: en
    status: true
    dependencies:
      module:
        - group
    id: group_roles
    field_name: group_roles
    entity_type: group_content
    type: entity_reference
    settings:
      target_type: user_role
      handler: default
    module: core
    locked: false
    

    You will still have to create groups etc. I am not sure why there are no groups created on the install in the first place. Would make creation so much simpler. Anyhow, that fixes that. There will be other errors afterward that have to do with the group module. Those are there because no roles/groups where created so there are no fields etc. Once you create your group and reference the group on the content type, (adding the reference through fields). it should be pretty good.

    I've been attempting to fork this project as it seem sort of stagnent and these fixes are very simple. Seems no one is on top of this.

  • 🇨🇦Canada netgeek123

    As a side note. For reasons I do not understand, You must install all dependancies before installing the permission module, or you will have errors and less hair.

Production build 0.71.5 2024