Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.7
-
Fix Version/s: 3.7.1
-
Component/s: Workshop
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_37_STABLE
-
Fixed Branches:MOODLE_37_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-66049-master-workshopnamespace
Description
As noticed by Mary Cooch at learn.moodle.net, the site cron has stopped processing. It turned out to be a bug in the workshop cron code that made the whole cron fail.
Execute scheduled task: Background processing for workshop module (mod_workshop\task\cron_task)
|
processing workshop subplugins ...
|
Processing automatic assessment phase switch in 1 workshop(s) ... Default exception handler: Exception - Class 'mod_workshop\task\workshop' not found Debug:
|
Error code: generalexceptionmessage
|
* line 68 of /mod/workshop/classes/task/cron_task.php: Error thrown
|
* line 157 of /admin/tool/task/cli/schedule_task.php: call to mod_workshop\task\cron_task->execute()
|
On the line
$workshop->switch_phase(workshop::PHASE_ASSESSMENT);
|
the workshop class cannot be referenced like this.
Attachments
Issue Links
- is a regression caused by
-
MDL-64881 Workshop uses legacy cron
-
- Closed
-