You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really a bug report, as I doubt the MAICI plug-in is at fault. However, I wanted to point you to this thread in the moodle developer forum. Below is a summary of my problem:
MAICI creates a new instance of completion_info in classes/completion.php. At this point, there is no problem with the course ID:
$course = get_course($moduleinstance->course);
// As expected, $course->id is a valid id >= 2
$completion = new \completion_info($course);
In the moodle core, lib/navigationlib.php is later called. This line (line 1469 in moodle 4.2.1) causes my problem:
$issite = ($this->page->course->id == $SITE->id);
At this point, $this->page->course->id equals 1 - but only in our production system. This causes subsequent error and makes MAICI unusable. I could not reproduce this error with my local environment, or our testing system.
The text was updated successfully, but these errors were encountered:
This is not really a bug report, as I doubt the MAICI plug-in is at fault. However, I wanted to point you to this thread in the moodle developer forum. Below is a summary of my problem:
MAICI creates a new instance of completion_info in classes/completion.php. At this point, there is no problem with the course ID:
In the moodle core, lib/navigationlib.php is later called. This line (line 1469 in moodle 4.2.1) causes my problem:
At this point, $this->page->course->id equals 1 - but only in our production system. This causes subsequent error and makes MAICI unusable. I could not reproduce this error with my local environment, or our testing system.
The text was updated successfully, but these errors were encountered: