-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.1, 2.5
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
w22_
MDL-39802_m26_deletedusers -
I've noticed a bug when enrolling deleted users via a meta enrolment.
Consider user U in course A, enrolled as a manual enrolment and the user account is all ok.
For some reason, user U's account becomes marked as deleted.
(in our setup, users are added via the LDAP enrolment plugin, set to "Keep internal" if the external user disappears)
If you then go to course B and add a meta enrolment back to course A (ie. those in course A are also enroled in course B), the procedure fails. The meta plugin only adds a subset of users to course A, and diplays the following error:
Coding error detected, it must be fixed by a programmer: User ID does not exist or is deleted!
More information about this error
Debug info: userid:68583
Error code: codingerror
Stack trace:
line 1610 of /lib/accesslib.php: coding_exception thrown
line 1311 of /lib/enrollib.php: call to role_assign()
line 465 of /enrol/meta/locallib.php: call to enrol_plugin->enrol_user()
line 56 of /enrol/meta/addinstance.php: call to enrol_meta_sync()
Final note. I can see why this occurs, Moodle can't find the user account in order to add them to the second course. But IMHO Moodle should continue to add the valid users and display a summary/error at the end of the procedure; rather than aborting in a semi-enrolled state.
- Discovered while testing
-
MDL-39911 Updating user profile with imsenterprise enrolment plugin is not working.
- Closed
- is duplicated by
-
MDL-37928 Cohort sync enrollment - Invalid call to role_assign(), userid can not be empty
- Closed
-
MDL-39789 Enrol Global Groups
- Closed
-
MDL-40820 Cohorts should have idnumbers required when creating and editing.
- Closed
- will help resolve
-
MDL-37185 cleanup enrol_imsenterprise
- Closed