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

Cannot redeclare tool_task_status_checks() error while trying to "Run now" cron task

XMLWordPrintable

      Hey there,

      when I try to "Run now" any task, the action fails with the message:

      Fatal error:  Cannot redeclare tool_task_status_checks() (previously declared in /var/www/moodle/admin/tool/task/lib.php:34) in /var/www/moodle/admin/tool/task/lib.php on line 34

      I believe this is due to line 88 in admin/tool/task/schedule_task.php; there should be require_once keyword instead of require.

      Not sure which versions are affected, but it is easily reproducible in 4.2.4 and 4.2.5.

      Jarý Miroslav
      CTU FEE in Prague

            pholden Paul Holden
            jarymiro Miroslav Jarý
            Stevani Andolo Stevani Andolo
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 22 minutes
                1h 22m

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