Moodle Millionaire Game "error/there are no questions"

Moodle Millionaire Game "error/there are no questions"

by Elearning Service HWR -
Number of replies: 2
Hi Vasilis,

I really like your plugin and it works all really well.
Except if I choose Quiz for questionsource and set "Randomize questions" to "No". When i want to start my game now I get this error:

Notice: Undefined property: stdClass::$questions in C:\xampp\htdocs\moodle\mod\game\millionaire\play.php on line 410

Notice: Undefined property: stdClass::$questions in C:\xampp\htdocs\moodle\mod\game\millionaire\play.php on line 411
error/There are no questions

Debug info:
Error code: There are no questions
$a contents:
Stack trace:

    line 463 of \lib\setuplib.php: moodle_exception thrown
    line 338 of \mod\game\millionaire\play.php: call to print_error()
    line 271 of \mod\game\millionaire\play.php: call to game_millionaire_SelectQuestion()
    line 81 of \mod\game\millionaire\play.php: call to game_millionaire_ShowNextQuestion()
    line 22 of \mod\game\millionaire\play.php: call to game_millionaire_play()
    line 205 of \mod\game\attempt.php: call to game_millionaire_continue()
    line 180 of \mod\game\attempt.php: call to game_create()
    line 25 of \mod\game\attempt.php: call to game_do_attempt()

I'm currently using Moodle-version  2.7.2.

I would appreciate your help smile

Thank you

Tom


Average of ratings: -
In reply to Elearning Service HWR

Re: Moodle Millionaire Game "error/there are no questions"

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This information will be mostly useful to the Game module maintainer:

In Moodle 2.7, there were some changes to the quiz database structure. It looks like the game module has not been updated to account for that.

In reply to Elearning Service HWR

Re: Moodle Millionaire Game "error/there are no questions"

by Jean-Luc Delghust -

Does it work for you now? We're experiencing the same problem for Quiz questions (Moodle 2.7.1+), everything ok on glossaries..


Any help much appreciated