numbas / editor

An editor for the Numbas e-learning system.
http://numbas.mathcentre.ac.uk
Apache License 2.0
59 stars 61 forks source link

Two samples t-tests Practice exam error #116

Closed BillFoster closed 11 years ago

BillFoster commented 11 years ago

I get the following error message in running Two samples t-tests Practice in moodle (using Chrome, also similar , less verbose message in IE). However, it runs OK in numbas-editor.

TypeError: Cannot call method 'selectSingleNode' of undefined at Numbas.xml.tryGetAttribute (https://moodle.mas.ncl.ac.uk/pluginfile.php/1038/mod_scorm/content/4/scripts/xml.js:111:19) at Object.Numbas.Question (https://moodle.mas.ncl.ac.uk/pluginfile.php/1038/mod_scorm/content/4/scripts/question.js:38:2) at Object. (https://moodle.mas.ncl.ac.uk/pluginfile.php/1038/mod_scorm/content/4/scripts/exam.js:306:20) at task (https://moodle.mas.ncl.ac.uk/pluginfile.php/1038/mod_scorm/content/4/scripts/schedule.js:42:7) at Numbas.schedule.pop (https://moodle.mas.ncl.ac.uk/pluginfile.php/1038/mod_scorm/content/4/scripts/schedule.js:63:4)

BillFoster commented 11 years ago

Resolved! This is because I had been running an earlier version which subsequently had two questions removed, and it was trying to resume this. After clearing all attempts, the exam worked.