Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.8, 2.8.6
-
Component/s: Gradebook
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_28_STABLE
-
Fixed Branches:MOODLE_28_STABLE, MOODLE_29_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
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.)
See this forum for more details and other reports of the same issue:
https://moodle.org/mod/forum/discuss.php?d=311573