Hello
Having a really weird issue with Quiz Results I hope you can help with. We use Moodle 1.9
The results for each students attempts are shown on the screen when you go into the results tab. This displays the headers for each column and lists the students below with their answers in each column as you would expect.
You then have an option to download them in Excel, text or ODS format. I select all the students and select each one.
When either ODS or Excel format are chosen, the resulting file is completely blank.
When I select Text, I get a file containing only the headers, but no information underneath.
Quite a novice with Moodle and would appreciate some help.
Many thanks
Robert Hough
The Oldham College
Can you turn on Debugging and see whether there is an error message. Thanks.
Hi Tim, thank you for your quick response.
With debugging on, the following appears in the text file I download.
<br />
<b>Notice</b>: Undefined variable: table in <b>D:\XAMPP\htdocs\mod\quiz\report\overview\report.php</b> on line <b>355</b><br />
<br />
<b>Fatal error</b>: Call to a member function get_sql_sort() on a non-object in <b>D:\XAMPP\htdocs\mod\quiz\report\overview\report.php</b> on line <b>355</b><br />
Line 355 in that php file is:
355 $sort = $table->get_sql_sort();
With debugging on, the following appears in the text file I download.
<br />
<b>Notice</b>: Undefined variable: table in <b>D:\XAMPP\htdocs\mod\quiz\report\overview\report.php</b> on line <b>355</b><br />
<br />
<b>Fatal error</b>: Call to a member function get_sql_sort() on a non-object in <b>D:\XAMPP\htdocs\mod\quiz\report\overview\report.php</b> on line <b>355</b><br />
Line 355 in that php file is:
355 $sort = $table->get_sql_sort();
Actually, the exact same error message occurs on ODS and Excel downloads too.
Any help or ideas would be greatly appreciated.
Thanks
Rob
Any help or ideas would be greatly appreciated.
Thanks
Rob
Great, that is a nice specific error message. Now we just need to know:
When you say you are using Moodle 1.9, do you mean you are using a fairly recent 1.9.4 build?
If you are, please file this bug in at http://tracker.moodle.org/
If you are using 1.9 or 1.9.1 or something older, we really need to know whether the problem still occurs in a more recent version.
When you say you are using Moodle 1.9, do you mean you are using a fairly recent 1.9.4 build?
If you are, please file this bug in at http://tracker.moodle.org/
If you are using 1.9 or 1.9.1 or something older, we really need to know whether the problem still occurs in a more recent version.
Hi again
We are running Moodle 1.9.1
We are running Moodle 1.9.1
Right, this is MDL-15047 which was fixed in Moodle 1.9.2.
The required fix is http://cvs.moodle.org/moodle/mod/quiz/report/overview/report.php?r1=1.98.2.29&r2=1.98.2.30, but it might be a better idea to upgrade to 1.9.4 if you can. Some security issues have been found and fixed recently.
The required fix is http://cvs.moodle.org/moodle/mod/quiz/report/overview/report.php?r1=1.98.2.29&r2=1.98.2.30, but it might be a better idea to upgrade to 1.9.4 if you can. Some security issues have been found and fixed recently.
Thanks Tim !
I did the fix for now, as it was only adding a few lines of code. Works fine now.
We will consider doing an update for the security fixes during the next college break.
Thank you very much for taking time to help me on this.
Rob
I did the fix for now, as it was only adding a few lines of code. Works fine now.
We will consider doing an update for the security fixes during the next college break.
Thank you very much for taking time to help me on this.
Rob