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

Error when send report schedules by schedule task manager

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Custom reports

      1. Log in as admin
      2. Navigate to Reports > Report builder > Custom reports in site administration
      3. Create a new report from Users report source
      4. Press Audience tab in editor
      5. Add Manually added users audience, select admin user
      6. Press Schedules tab in editor
      7. Create new schedule
        • Name: Test
        • Format: Portable Document Format (.pdf)
        • Starting from: 1 January 2022
        • Audience: Manually added users
        • Subject: Test report
        • Message: See attached PDF
        • Save
      8. Select Send schedule for the new Test schedule
        • Confirm you want to queue for sending
      9. Navigate to Server > Task > Schedule tasks in site administration
      10. Search "Send report schedules" task and click in Run now (Path to PHP CLI needs to be setted correctly to see this action link)
        • Confirm you want to run the task
      11. Make sure the task will executed without show any errors.
      Show
      Custom reports Log in as admin Navigate to  Reports > Report builder > Custom reports  in site administration Create a new report from  Users  report source Press  Audience  tab in editor Add  Manually added users  audience, select admin user Press  Schedules  tab in editor Create new schedule Name: Test Format: Portable Document Format (.pdf) Starting from: 1 January 2022 Audience: Manually added users Subject: Test report Message: See attached PDF Save Select  Send schedule  for the new  Test  schedule Confirm you want to queue for sending Navigate to  Server > Task > Schedule tasks  in site administration Search "Send report schedules" task and click in Run now (Path to PHP CLI needs to be setted correctly to see this action link) Confirm you want to run the task Make sure the task will executed without show any errors.

      When try to send report schedules using the schedule task UI shows the following error:

       

      Scheduled task failed: Send report schedules (core_reportbuilder\task\send_schedules),Call to undefined function core_reportbuilder\local\helpers\file_get_unused_draft_itemid()

       

        1. MDL-75311_master.png
          MDL-75311_master.png
          39 kB
        2. MDL-75311_v400.png
          MDL-75311_v400.png
          39 kB
        3. Run schedule error.png
          Run schedule error.png
          27 kB

            carlos.castillo@moodle.com Carlos Castillo
            carlos.castillo@moodle.com Carlos Castillo
            Paul Holden Paul Holden
            Jun Pataleta Jun Pataleta
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 9 minutes
                2h 9m

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