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

fatal error when one of scheduled tasks is misconfigured

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • MDL-46904-master
    • Hide
      1. run unit tests
      1. On an existing site, hack the DB to change the classname for an existing scheduled task to something invalid (choose something that it scheduled to run all the time)
      2. Run cron
      3. Verify you see debugging "Failed to load task: XXX"
      4. Verify the scheduled tasks after the debugging is triggered still run.
      Show
      run unit tests On an existing site, hack the DB to change the classname for an existing scheduled task to something invalid (choose something that it scheduled to run all the time) Run cron Verify you see debugging "Failed to load task: XXX" Verify the scheduled tasks after the debugging is triggered still run.

      This popped up for abgreeve when running cron. It is probably some misconfiguration on dev machine with lots of stuff being installed, uninstalled and tested but it looks like class_exists() would be nice there to avoid fatal errors:

       
      Fatal error: Call to a member function set_lock() on a non-object in /home/adrian/moodles/integration_master_postgres/moodle/lib/classes/task/manager.php on line 422
       
      Warning: var_export does not handle circular references in /home/adrian/moodles/integration_master_postgres/moodle/lib/classes/shutdown_manager.php on line 83
       
      Warning: var_export does not handle circular references in /home/adrian/moodles/integration_master_postgres/moodle/lib/classes/shutdown_manager.php on line 83
       
      Warning: var_export does not handle circular references in /home/adrian/moodles/integration_master_postgres/moodle/lib/classes/shutdown_manager.php on line 83
       
      Warning: var_export does not handle circular references in /home/adrian/moodles/integration_master_postgres/moodle/lib/classes/shutdown_manager.php on line 83
      

            damyon Damyon Wiese
            marina Marina Glancy
            Frédéric Massart Frédéric Massart
            Marina Glancy Marina Glancy
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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