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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.2.4
    • Fix Version/s: None
    • Component/s: LTI provider
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-60911-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jessestilwell Jesse Stilwell
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              3 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated: