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

Fatal Error in enrol_lti\task\sync_grades scheduled task breaks cron

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 3.2.4
    • LTI provider
    • MOODLE_32_STABLE
    • wip-MDL-60911-master
    • Hide
      1. For each branch:
      2. Install a new version of Moodle;
      3. Clone in the appropriate issue branch;
      4. Go into Site Administration, Plugins, Enrolments, and enable Publish as LTI tool;
      5. run the cron;
      6. Run the sync grades task:
        php admin/tool/task/cli/schedule_task.php --execute='\enrol_lti\task\sync_grades
      7. Unit tests - vendor/bin/phpunit sync_grades_testcase enrol/lti/tests/sync_grades_test.php
      Show
      For each branch: Install a new version of Moodle; Clone in the appropriate issue branch; Go into Site Administration, Plugins, Enrolments, and enable Publish as LTI tool; run the cron; Run the sync grades task: php admin/tool/task/cli/schedule_task.php --execute='\enrol_lti\task\sync_grades Unit tests - vendor/bin/phpunit sync_grades_testcase enrol/lti/tests/sync_grades_test.php

      After receiving a complaint that users weren't receiving notifications, we saw in the cron log that the enrol_lt\task\sync_grades scheduled task was stopping the cron from completing successfully.

      The fatal error that occurs is below:

       

      Execute scheduled task: Publish as LTI tool grade sync (enrol_lti\task\sync_grades)
      ... started 15:25:08. Current memory use 4.7MB.
      PHP Fatal error:  Cannot declare class OAuthException, because the name is already in use in /mnt/code/www/moodle_prod/enrol/lti/ims-blti/OAuth.php on line 0

       

      When the enrol_lti\task\sync_grades task is disabled, cron runs through cleanly, including the enrol_lti\task\sync_members task that is still enabled.

      Until this issue is resolved, this site won't be able to utilize LTI because it completely breaks the site's cron.

            Votes:
            6 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:

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