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

Regression from MDL-79843 due to uninstalled plugins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.0
    • 5.0
    • Tasks

      Just ran into a regression with this. If you have a scheduled task from a plugin which is uninstalled everything cron related both cli and web explodes because scheduled_task_from_record() can return false and task_component_is_deprecated() needs a task object:

      php admin/cli/scheduled_task.php --list  
      == List of scheduled tasks (https://master.localhost) ==
      !!! Exception - core\task\manager::task_component_is_deprecated(): Argument #1 ($task) must be of type core\task\task_base, false given, called in [dirroot]/lib/classes/task/manager.php on line 650 !!!
      !! 
      Error code: generalexceptionmessage !!
      !! Stack trace: * line 1009 of /lib/classes/task/manager.php: TypeError thrown

      • line 650 of /lib/classes/task/manager.php: call to core\task\manager::task_component_is_deprecated()
      • line 89 of /admin/cli/scheduled_task.php: call to core\task\manager::get_all_scheduled_tasks()
         !!

       

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Jason den Dulk Jason den Dulk
            David Woloszyn David Woloszyn
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 33 minutes
                1h 33m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.