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

Calendar subscriptions fail to update

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Calendar import
      1. Login as an admin
      2. Go to Calendar
      3. Click Manage subscriptions
      4. Enter a calendar name (e.g. Jun's awesome public calendar)
      5. Enter the https://calendar.google.com/calendar/ical/moodle.com_gverd91agb5htmi8ervnn6q2j0%40group.calendar.google.com/public/basic.ics into the Calendar URL.
      6. Click Add.
        • Confirm that you can successfully import the calendar.
      Cron
      1. Manually edit the entry of the imported calendar in the "{event_subscriptions}" table.
      2. Set the value for the "pollinterval" column to 1.
      3. Open a terminal and go to your moodle root directory.
      4. Run

        php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\calendar_cron_task
        

        • Confirm that the cron task successfully completes. (You might get "++ Error: mdb->get_record() found more than one record! ++" messages, but ignore those. They will be fixed on a separate issue)
      Unit test
      1. Ensure vendor/bin/phpunit lib/tests/calendar_cron_task_test.php passes.
      Show
      Calendar import Login as an admin Go to Calendar Click Manage subscriptions Enter a calendar name (e.g. Jun's awesome public calendar) Enter the https://calendar.google.com/calendar/ical/moodle.com_gverd91agb5htmi8ervnn6q2j0%40group.calendar.google.com/public/basic.ics into the Calendar URL. Click Add. Confirm that you can successfully import the calendar. Cron Manually edit the entry of the imported calendar in the "{event_subscriptions}" table. Set the value for the " pollinterval " column to 1. Open a terminal and go to your moodle root directory. Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task\\calendar_cron_task Confirm that the cron task successfully completes. (You might get " ++ Error: mdb->get_record() found more than one record! ++ " messages, but ignore those. They will be fixed on a separate issue) Unit test Ensure vendor/bin/phpunit lib/tests/calendar_cron_task_test.php passes.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-58803-master

      Description

      This is on the latest integration master.

      When you add an ical calendar as a subscription in Moodle calendar, you get this warning as a web error:

      Exception - Class 'rrule_manager' not found

      When cron runs you get this:

      Execute scheduled task: Send calendar notifications (core\task\calendar_cron_task)
      ... started 18:45:01. Current memory use 4.2MB.
      Updating calendar subscription Sites team in course 2
      !!! Exception - Call to undefined function core\task\calendar_update_subscription_events() !!!

      And cron dies COMPLETELY (no other tasks are run).

      So yeah, pretty serious. 

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17