Мнения, написани от Alain Raap

Thanks for the tip Tim, I found this major bug tracker today, and that could be a reason for our errors in the quiz questions tab?
https://tracker.moodle.org/browse/MDL-79316
Tim, I have a question about the DB schema, is it possible to check whether data/relations have become corrupted in the Moodle database?
I checked the tables with the mariadb-check routine but the result was no errors. It is difficult to solve corrupted data in courses without knowing how to repair the corrupted data/relations.
Hi Tim,

Is it possible to solve this problem or is the course content corrupted? Could this be the result of a backup restore that didn't
end well? We can't use the courses now anymore and that's a problem for the teachers working on these courses.

Moodle in English -> Quiz and question banks -> Problems with Question tab in Quiz

от Alain Raap -
We are using Moodle 4.1.9 and in several courses (also restores from backups) we have problems to open the Question tab in a quiz. This is the stacktrace of one the courses with these problems:

Fout in de programmeercode gevonden. Dit moet door een programmeur hersteld worden. Invalid context id specified context::instance_by_id()

Meer informatie over deze fout

Foutopsporingsinformatie: 
Error code: codingerror×Verwerp deze opmerking
Stack trace: 
  • line 5421 of /lib/accesslib.php: coding_exception thrown
  • line 261 of /mod/quiz/classes/structure.php: call to context::instance_by_id()
  • line 841 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\structure->has_use_capability()
  • line 761 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->get_action_icon()
  • line 547 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->question()
  • line 520 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->question_row()
  • line 95 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->questions_in_section()
  • line 210 of /mod/quiz/edit.php: call to mod_quiz\output\edit_renderer->edit_page()
What could be the reason of this error? Could it also have a relation with this tracker?

https://tracker.moodle.org/browse/MDL-61267