-
Epic
-
Resolution: Unresolved
-
Minor
-
None
-
3.7.5, 3.11.4, Future Dev, 4.1
-
MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_401_STABLE
-
Cron error. Course module delete issues
The issue appears in the cron output:
Adhoc task failed: core_course\task\course_delete_modules, Coding error detected, it must be fixed by a programmer: The course module SOME_CM_ID could not be deleted.
It would be fine to found an universal solution for this issue.
The issue appears for different activities.
It was noticed for:
- mod_questionnaire
- mod_bigbluebuttonbn
- mod_elluminate
- mod_turnitintooltwo
It appears when "Enable course recycle bin" is turned on.
In DB it looks the same for at least most of the cases:
- No record in plugin's table like mdl_questionnaire or mdl_bigbluebuttonbn,
- Kept record in mdl_course_modules
Possible solution:
Check mdl_course_modules table in a cron is there related records in the plugin's tables and remove orphaned course module records.
To Verify:
The CM id is present in the mdl_course_modules, mdl_course_sections ( sequence) and mdl_context, just missing from instance table eg. mdl_assign
- has been marked as being related by
-
MDL-74900 'course_delete_modules' adhoc task fails when course module has instance of zero
- Open
-
MDL-77924 Deleting a course with an activity plugin disabled results in exception
- Reopened
-
MDL-80930 Course delete modules adhoc task handle non deletable modules
- Closed
- is duplicated by
-
MDL-71082 Scorm: cron fails on adhoc task course_delete_modules
- Closed
- will be (partly) resolved by
-
MDL-75579 Asynchronous restore keeps deleting course/student content
- Closed
-
MDL-31571 Implement orphan module cleaner
- Open