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
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
Comment #2
spleshkaThanks for reporting the issue @btriest, we're looking into the issue now and soon will come with a solution!
Comment #3
spleshkaAfter 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.
Comment #4
btriest commentedThanks for the work-around. A quick side-node: I really like the user friendliness of the module.
Comment #5
spleshkaThanks for the feedback, happy to hear :-)
Comment #6
Jitendra_Kumar commentedComment #7
Jitendra_Kumar commentedComment #8
beloglazov91Comment #10
beloglazov91The 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.
Comment #11
beloglazov91Comment #13
spleshkaGreat job, thanks everybody for their contributions!
Comment #15
adTumbler commentedHi 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)
Comment #16
adTumbler commentedWe 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).
Comment #17
karunadave commentedInterestingly 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)"
Comment #18
omd commentedhaving the same issue, and having to role back groups module to 2.3.1 to fix this.
Comment #19
doxigo commentedThe issue still persists with group 3.x
Comment #20
themic8 commentedI also have issues with group 3.x and rolling back to 2.x fixes the issue.
Comment #21
omd commentedIt’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?