Problem/Motivation

On a fresh clean drupal site i installed Anu LMS Permissions and received the following error: Unable to install Anu LMS Permissions due to unmet dependencies: group.content_type.group_content_type_d342280e2d680 (node.type.module_assessment)

Steps to reproduce

A clean drupal install 9.4.5 with only the required modules for Anu LMS.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork anu_lms-3308195

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

btriest created an issue. See original summary.

spleshka’s picture

Thanks for reporting the issue @btriest, we're looking into the issue now and soon will come with a solution!

spleshka’s picture

After a quick investigation we found out that anu_lms_permissions de-facto depends on on anu_lms_assessments. So if you enable anu_lms_assessments first then anu_lms_permissions can be enabled as well. You can use it as a quick work-around to resolve the bug. In the meantime we will have a think about a longer term solution to fix the issue.

btriest’s picture

Thanks for the work-around. A quick side-node: I really like the user friendliness of the module.

spleshka’s picture

Version: 2.7.2 » 2.x-dev

Thanks for the feedback, happy to hear :-)

Jitendra_Kumar’s picture

Assigned: Unassigned » Jitendra_Kumar
Jitendra_Kumar’s picture

Assigned: Jitendra_Kumar » Unassigned
beloglazov91’s picture

Assigned: Unassigned » beloglazov91

beloglazov91’s picture

The problem was fixed and now ready to review.

The solution: configs with deps to "anu_lms_assessments" were moved to "optional" and hook_install was added for "anu_lms_assessments" to import mentioned configs.

beloglazov91’s picture

Assigned: beloglazov91 » Unassigned
Status: Active » Needs review

spleshka’s picture

Status: Needs review » Fixed

Great job, thanks everybody for their contributions!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

adTumbler’s picture

Hi Team

Latest Drupal and anu-lms 2.9.2
Have tried to enable ANU-LMS Permissions

(I had to hold off while getting the dependency modules installed)
(as a result I did have quizzes enabled (anu_lms_assessments)

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)

adTumbler’s picture

We did some debugging and found out that this issue was happening because we had installed the 3.0.0-beta4 version of the Group module.

We uninstalled it and instead installed the 2.0.0-beta4 version

We had to also change the Group Media version from 4.0.0-alpha3 to 3.0.0-alpha3.

This seems to have resolved the issue as i was able to now install the anu_lms_permissions module, however now although the module is installed but there is a new error that happens when you install the module.

Drupal\Core\Entity\EntityMalformedException: All group roles require a scope. in Drupal\group\Entity\GroupRole->preSave() (line 338 of /home/888551.cloudwaysapps.com/peemywvvdy/public_html/web/modules/contrib/group/src/Entity/GroupRole.php).

karunadave’s picture

Interestingly I have the same experience, roughly 2 years now in 2024-11-01,
With Drupal 10.3.6, and:
"drupal/anu_lms": "^2.10",
"drupal/group": "^3.3",
"drupal/groupmedia": "^4.0",
"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)"

omd’s picture

having the same issue, and having to role back groups module to 2.3.1 to fix this.

doxigo’s picture

The issue still persists with group 3.x

themic8’s picture

I also have issues with group 3.x and rolling back to 2.x fixes the issue.

omd’s picture

It’s been almost three years without any response from maintainers on this issue.

Should we open a new issue to try to get visibility, or is this module effectively abandoned at this point?