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

Error when guessed start date is higher than end date timestamp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60758_master

      Description

      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()
       !!
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17