-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.8.6
-
None
-
MOODLE_28_STABLE
I found this because I have an old mod_assignment in my test course, left over from years ago.
Steps to reprodce:
- Install a Moodle 2.x, for some x that allows you to create an old mod_assignment.
- Create a test course with an old-style assignment in it.
- Upgrade to Moodle 2.8 or later.
- Note that the assignment is not shown on the course page.
- Note that in the grade report, the column for the Assignemtn is shown, with no link in the column heading.
- Click the Single view icon for any row or column.
Expect result: Something sensible is displayed.
Acutal result:
Error
|
|
Invalid module ID: {$a}
|
|
More information about this error
|
Debug info:
|
Error code: invalidmoduleid
|
Stack trace:
|
|
line 2254 of /lib/modinfolib.php: moodle_exception thrown
|
line 117 of /grade/report/singleview/classes/local/screen/user.php: call to get_course_and_cm_from_instance()
|
line 90 of /grade/report/singleview/classes/local/screen/screen.php: call to gradereport_singleview\local\screen\user->init()
|
line 98 of /grade/report/singleview/lib.php: call to gradereport_singleview\local\screen\screen->__construct()
|
line 131 of /grade/report/singleview/index.php: call to gradereport_singleview->__construct()
|
I expect this happens in any case where you create a graded activity, and then un-install the plugin. (So, most likely with a plugin installed from the plugins DB.)
- duplicates
-
MDL-50091 'Invalid Module ID: {$a}' in gradebook singleview if a module has been uninstalled
- Closed