Download in ___ format just opens in browser

Download in ___ format just opens in browser

par Brandon Quinn,
Nombre de réponses : 4
I have a quiz with multiple completed attempts. When I click "Download In <Text/ Excel/ ODS> Format" it just redirects my browser to some raw, unreadable data. I can't save the data and open in Excel.

This occurs in Firefox 3.6.x and IE 8; Moodle 1.9.7

How can I fix this?

Thanks
Annexe moodle_excel.PNG
Moyenne des évaluations  -
En réponse à Brandon Quinn

Re: Download in ___ format just opens in browser

par Tim Hunt,
Avatar Core developers Avatar Documentation writers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers
It is getting confused by the "No students enrolled ... yet" message which is being output. That is breaking whatever file format it is that you are trying to download.

The odd thing is that the download options are not output unless there are students.
En réponse à Tim Hunt

Re: Download in ___ format just opens in browser

par Brandon Quinn,
Tim,

Thanks for the response. This quiz is on the root level of Moodle, and not in a class so there will never be enrolled students. However, people have successfully taken the quiz and I can see their scores within moodle. Is there any way to suppress the "No students enrolled ... yet" message?

En réponse à Brandon Quinn

Re: Download in ___ format just opens in browser

par Tim Hunt,
Avatar Core developers Avatar Documentation writers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers
Ah, well that is a bug. I can't find it recorded in http://tracker.moodle.org, so please report it officially so I don't forget about it.

As a quick fix, try commenting out the line

notify(get_string('nostudentsyet'));

in mod/quiz/report/overview/report.php