Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66049

Workshop cron refers to the workshop class in a wrong way - namespacing issue

    XMLWordPrintable

    Details

      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

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Carlos Escobedo
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 50 minutes
                  3h 50m