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

Cron failure from recent_activity block

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Blocks
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18

                Time Tracking

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