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

Course completion report gets "Invalid course module id" error after upgrade from 3.10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.7, 4.3
    • Course completion
    • MOODLE_311_STABLE, MOODLE_403_STABLE

      When attempting to view the course completion activity report for a particular course, the error "Invalid Course module ID" is raised. Another issue (MDL-74520) reproduces the problem for an activity that becomes disabled, but we have only one disabled activity in our 3.11.5+ system ("Assignment 2.2") and all of the course's activities are in use by other courses and do not have issues. 

      From the stack trace (attached) it is impossible to determine which activity is at fault, if this is related to a specific activity. We would like a fix or a workaround for this problem. MDL-74520 reports that this problem occurs with both 3.11 and 4.0. 

       

      Steps to reproduce (thanks to laurent.david@moodle.com in MDL-79847):

      • Install the H5P / HVP activity from https://moodle.org/plugins/mod_hvp
      • Create a new course C1
      • Enable completion for the course
      • Enrol user S1 (student)
      • Add a new HVP activity (dark icon)
      • Add a Multiple Choice question (a simple one)
      • Make sure that completion is enable when student receive any grade
      • In the course, go to More > Course Completion and check the box next to the activity in the Condition: Activity completion section
      • Login as S1
      • Complete the activity
      • Login as Admin/teacher
      • Go to Report / Completion report
      • Ensure that the report display the information
      • Uninstall the H5P/HVP activity
      • Go back to the report
      • You should see the following:

            Unassigned Unassigned
            glennpaulley Glenn Paulley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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