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

Error when guessed start date is higher than end date timestamp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4
    • 3.4
    • Analytics
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-60758_master
    • Hide
      1. Create a topics course with start date in 2012 and end date in 2013
      2. Enrol 1 student on it, log in as that student and generate a couple of logs (1 should be enough)
      3. Execute php admin/tool/analytics/cli/guess_course_start_and_end.php --guessall --update
      4. You SHOULD NOT see any error
      Show
      Create a topics course with start date in 2012 and end date in 2013 Enrol 1 student on it, log in as that student and generate a couple of logs (1 should be enough) Execute php admin/tool/analytics/cli/guess_course_start_and_end.php --guessall --update You SHOULD NOT see any error

      This error appear when a guessed start date is higher than the database end date.

      !!! The course end date must be after the start date. !!!
      !! 
      Error code: enddatebeforestartdate !!
      !! Stack trace: * line 2583 of /course/lib.php: moodle_exception thrown
      * line 143 of /admin/tool/analytics/cli/guess_course_start_and_end.php: call to update_course()
      * line 101 of /admin/tool/analytics/cli/guess_course_start_and_end.php: call to tool_analytics_calculate_course_dates()
       !!
      

            dmonllao David Monllaó
            dmonllao David Monllaó
            Damyon Wiese Damyon Wiese
            Jun Pataleta Jun Pataleta
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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