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

Scheduled tasks / Cron issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.1
    • Fix Version/s: None
    • Component/s: Unknown
    • Labels:
      None
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      Since upgrading to 3.4.1 (the latest release currently available) the scheduled tasks are failing.
      Running Scheduled Tasks . \mod_scorm\task\cron_task produces this 

      Forum mailings and maintenance jobs

      Execute scheduled task: Forum mailings and maintenance jobs (mod_forum\task\cron_task) ... started 10:25:33. Current memory use 31.9MB. ... used 4 dbqueries ... used 0.028475046157837 seconds Scheduled task failed: Forum mailings and maintenance jobs (mod_forum\task\cron_task),Coding error detected, it must be fixed by a programmer: Function cron_setup_user() cannot be used in normal requests! Backtrace: * line 918 of /mod/forum/lib.php: call to cron_setup_user() * line 45 of /mod/forum/classes/task/cron_task.php: call to forum_cron() * line 104 of /lib/cronlib.php: call to mod_forum\task\cron_task->execute() * line 292 of /lib/cronlib.php: call to cron_run_inner_scheduled_task() * line 91 of /admin/tool/task/schedule_task.php: call to cron_run_single_task()
       
      Purging the caches produces this:
       
      Debug info: 
      Error code: missingparam
      ×Stack trace: * line 482 of /lib/setuplib.php: moodle_exception thrown

      • line 568 of /lib/moodlelib.php: call to print_error()
      • line 44 of /admin/tool/task/schedule_task.php: call to required_param()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bivibag Robin Trangmar
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: