Hi All,
Moodle 2.5 2.5.1+ (Build: 20130808)Version 2013051401.08on Windows server 2008r2, iis7.5, ms sql server 2008r2
I'm getting the error:
Coding error detected, it must be fixed by a programmer: Invalid context id specified context::instance_by_id()
when clicking course administration>users>enrolled users | enrolment methods.
With debugging on I see:
Debug info: Error code: codingerror
line 5178 of \lib\accesslib.php: coding_exception thrown
line 49 of \enrol\cohort\lib.php: call to context::instance_by_id()
line 506 of \enrol\locallib.php: call to enrol_cohort_plugin->get_instance_name()
line 152 of \enrol\users_forms.php: call to course_enrolment_manager->get_enrolment_instance_names()
line 191 of \lib\formslib.php: call to enrol_users_filter_form->definition()
line 205 of \enrol\users.php: call to moodleform->moodleform()
This only occurs for a few courses but I can't see what's different about them compared to the courses that don't have a problem
Any ideas would be very much appreciated