wjunkin / moodle-quiz_liveviewgrid

Dynamic quiz spreadsheet
2 stars 2 forks source link

Moodle 4.0 #25

Open mattgig opened 2 years ago

mattgig commented 2 years ago

When using Moodle 4.0 the plugin doesn't show the individual questions anymore, probably because of the changes made in the question database.

image

wjunkin commented 2 years ago

Hi, Mathias, Thanks for your comments. Yes, the changes in the question structure for some of the question type has caused a problem for Live Report. I have developed a newer version of Live Report that may resolve your problem, depending on the question type. I wanted to make sure this new version was completely bug-free before posting it to Github. If you want to try it on your site, you should be able to obtain the zipped file at https://drive.google.com/file/d/1GSyDHLqNPlDxEWn517J4ID7U3aBNLbyc/view?usp=sharing Also, if you can let me know the question type(s) that is/are giving you this result, I will see what I can do. Again, thanks for your comment.

mattgig commented 2 years ago

Hi Bill, Thank you for you quick reply.

I've installed your test version and had a first quick look. So far, with all the exams I've tried, I get the same (non)result as in the screenshot above.

I will do some additional testing with simple MC and Cloze questions tomorrow and report back.

wjunkin commented 2 years ago

Hi Mathais, I have located the problem. Moodle removed a field from the quiz_slots table. I have made progress on fixing this, hopefully by Wednesday. Live Report won't work on Moodle 4.0 until I get it fixed. Sorry. (We are on a vacation trip until Tuesday. ) Thanks for bringing this to my attention.

mattgig commented 2 years ago

Hi Bill,

I have just tested it on a system which doesn't thrown any erros due to additional plugins and here is what I get:

Notice: Undefined property: stdClass::$questionid in .../mod/quiz/report/liveviewgrid/table_iframe27.php on line 665 Notice: Undefined index: qtype in .../mod/quiz/report/liveviewgrid/table_iframe27.php on line 369 Notice: Trying to access array offset on value of type null in .../mod/quiz/report/liveviewgrid/table_iframe27.php on line 369 Notice: Undefined .../mod/quiz/report/liveviewgrid/table_iframe27.php on line 440 Notice: Trying to access array offset on value of type null in .../mod/quiz/report/liveviewgrid/table_iframe27.php on line 440

I hope that confirms your approach. And there is absolutely not rush. Enjoy your vaccation and thanks.

Once you are back, let me know what I tests I can do to help you with the upgrade.

wjunkin commented 2 years ago

I have now prepared a new version of Live Report. According to my testing, it works with Moodle 4.0. (It will not work with earlier versions of Moodle.) I have tested it out and can't find any bugs (except that it doesn't handle images correctly if the images are part of a question text). Once it has been tested more completely, I will upload it to this GitHub site. If you are interested in testing it (and thank you if you do) you should be able to obtain the zipped file here: https://drive.google.com/file/d/1U0PmBcHtK6fLLWZuowPUUtG0bZUiu_yO/view?usp=sharing

wjunkin commented 2 years ago

Sorry. The link above is not correct. I think this is the correct link: https://drive.google.com/file/d/17XHTk5qv4RGTJ5uP95BP8onPQ8tjRDyQ/view?usp=sharing

dinism commented 2 years ago

THANKS a LOT. I will try it in next days!

wjunkin commented 2 years ago

Thank you, Dinis. That will be very helpful. I'm still working on getting images in the question text to show up. (Moodle 4.0 changed that part too) Bill Junkin junkinwf@eckerd.edu