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

fatal error when one of scheduled tasks is misconfigured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.7.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46904-master

      Description

      This popped up for Adrian Greeve 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
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14