use of tags in restored quiz

use of tags in restored quiz

Manuel Van Steenbergen -
回帖数:0

We created a quiz using a “question pool at the course level” in Moodle 4.3 and used the tag “mettag” as a filter condition to select random questions. A full backup of this course (excluding members) was made.

 image.png

This backup was then restored as a new course on a different Moodle instance (4.5). When selecting the quiz and clicking “Preview quiz,” the following error appears:

 

There are not enough questions in category 119 to create the question Random question (305).

More information about this error

Debug info:
Error code: notenoughrandomquestions×Dismiss this notification

Stack trace:

    • line 241 of /mod/quiz/locallib.php: core\exception\moodle_exception thrown
    • line 2059 of /mod/quiz/locallib.php: call to quiz_start_new_attempt()
    • line 110 of /mod/quiz/startattempt.php: call to quiz_prepare_and_start_new_attempt()

 

image%20%281%29.png

 

Looking at the ‘Questions’ gives another ‘Warning’ and shows no tags on the selected questions.

  

Warning: Undefined array key 120 in /data/sites/web/edumasbe/subsites/devlms.edumas.be/mod/quiz/classes/structure.php on line 1819

image%20%282%29.png

 

How do we avoid this error?

Kind regards, Manuel