Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47371

Re: Course enrollment in 2.4

$
0
0
by Dave Pacione.  

I'm having the same problem in Moodle 2.5.1+ (Build: 20130808)Version 2013051401.08 on the same server configuration as above.

Debug info: Error code: codingerror
Stack trace:

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()

 

Output buffer: Notice: Trying to get property of non-object in D:\inetpub\moodle_dev\enrol\cohort\lib.php on line 49 Notice: Trying to get property of non-object in D:\inetpub\moodle_dev\enrol\cohort\lib.php on line 49
 
line 49 of enrol\cohort\lib.php is:
 
$cohortname = format_string($cohort->name, true, array('context'=>context::instance_by_id($cohort->contextid)));

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


Viewing all articles
Browse latest Browse all 47371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>