-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.4
-
None
-
MOODLE_22_STABLE
-
MOODLE_23_STABLE
When you create a Scheduler, this generates a link to "Schedulers" in the "Activities" block. When you click this link, the resulting page contains an error message that reads "Coding error detected, it must be fixed by a programmer: PHP catchable fatal error." The error log says the following:
Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Argument 2 passed to has_capability() must be an instance of context, null given, called in /Library/WebServer/[themename]/mod/scheduler/index.php on line 75 and defined\n* line 365 of /lib/setuplib.php: coding_exception thrown\n* line 348 of /lib/accesslib.php: call to default_error_handler()\n* line 75 of /mod/scheduler/index.php: call to has_capability()\n, referer: [baseurl]/report/log/index.php?chooselog=1&showusers=1&showcourses=0&id=1&user=[userid]&date=[date]&modid=&modaction=&logformat=showashtml