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

Cron failure from recent_activity block

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6
    • 3.6
    • Blocks

    Description

      MDL-61960 moved this cron job to a new task which is now failing in some conditions if course/lib.php has not already been included.

      Scheduled task failed: Cleanup task for recent activity block (block_recent_activity\task\cleanup),Notice: Use of undefined constant COURSE_MAX_RECENT_PERIOD - assumed 'COURSE_MAX_RECENT_PERIOD' in /var/www/html/blocks/recent_activity/classes/task/cleanup.php on line 56
      Backtrace:
      * line 56 of /blocks/recent_activity/classes/task/cleanup.php: call to behat_error_handler()
      * line 105 of /lib/cronlib.php: call to block_recent_activity\task\cleanup->execute()
      * line 67 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
      * line 81 of /admin/cron.php: call to cron_run()
      

      Attachments

        Activity

          People

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Monllaó David Monllaó
            Gladys Basiana Gladys Basiana
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Dec/18

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m