Sensei: Auto-grade feature doesn't work in Manual Grading screen

Created on 11 Mar 2016  路  8Comments  路  Source: Automattic/sensei

When you go to grade a quiz manually, the "Auto-grade" button should automatically grade any auto-gradable questions, but it currently does nothing.

Grading [Pri] Normal [Status] Accepted [Type] Bug

Most helpful comment

Reopening this. Tested again in Sensei LMS 2.4.0/WP5.4/PHP 7.3.16 using the steps listed above.

The auto-grade button did nothing, and I got the following console error:

Uncaught ReferenceError: user_answers is not defined

image

All 8 comments

Works for me. Must be a js error. I can see how it does it automatically after the page is loaded. The questions are graded.

Re-opening this, as the Auto Grade button is still not working in the manual grading screen. Tested on brand new site running Sensei LMS 2.1.2

Steps to reproduce:

  • Add a lesson containing a quiz with only multiple choice questions.
  • Disable auto grading in the quiz settings.
  • Take the quiz and answer all questions correctly.
  • Open the grading page for the quiz and click the 'Auto Grade' button.

Nothing happens and the quiz is not auto graded:

image

Have this issue on 2.4.0

This is what's going on in console:
console-ss

@martinbon Please open a new issue for the error. Thx!

Same here, this is when an answer is left blank..

Reopening this. Tested again in Sensei LMS 2.4.0/WP5.4/PHP 7.3.16 using the steps listed above.

The auto-grade button did nothing, and I got the following console error:

Uncaught ReferenceError: user_answers is not defined

image

This might have been fixed in 3.0.0 by https://github.com/Automattic/sensei/pull/2919. There is a commit (https://github.com/Automattic/sensei/pull/2919/commits/266f970e1ee2f127908cc46a46d9c8ce6b5f0576) that changes these lines and references the error.

cc: @yscik

Can confirm, issue is fixed with the change in #2919.

Was this page helpful?
0 / 5 - 0 ratings