-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
5.0 regressions, 5.0
Steps to reproduce:
- Install a fresh Moodle 4.5
- Create two questions in the category "Default for system"
- Create a new course
- Create a quiz in this course
- Add a random questions to the quiz. Set the category filter to "Top for system" with "Also show questions from subcategories" checked.
- Upgrade to Moodle 5
- Run cron (there's an adhoc task that need to be run after site upgrade)
- Enable warnings (level at least to NORMAL) and enable displaying those.
- Go to the quiz-settings of the quiz of step 4 and go to tab "Questions"
Expected behaviour:
View the two random questions in the question list.
Actual behavoiur:
See "Missing question categories" at the questions and see some PHP-Warnings:
Warning: Attempt to read property "cminfo" on null in /var/www/moodle_v5/bug_repro/mod/quiz/classes/output/edit_renderer.php on line 1131 |
Warning: Attempt to read property "id" on null in /var/www/moodle_v5/bug_repro/mod/quiz/classes/output/edit_renderer.php on line 1131 |
Additionally, clicking on "See questions" next to the random question also results in an error:
Invalid course module ID
|
|
More information about this error
|
Debug info:
|
Error code: invalidcoursemodule
|
Stack trace:
|
|
line 42 of /question/editlib.php: core\exception\moodle_exception thrown
|
line 255 of /question/editlib.php: call to get_module_from_cmid()
|
line 155 of /question/editlib.php: call to question_build_edit_resources()
|
line 39 of /question/edit.php: call to question_edit_setup()
|
Screenshots: see attachment.
Used system: Debian 12.10 with PHP 8.2.28 and MariaDB 15.1
- has a non-specific relationship to
-
MDLSITE-8085 Create a new page in the docs about the updates to the Question banks for 5.0
-
- Open
-
- is a regression caused by
-
MDL-82237 Quiz: "See questions" for Random question does not use all filters
-
- Closed
-