Hi

I'm having problems with long and short answer questions.

I took my quiz to test all functionality and went to grade these short and long answers but got this error:

Notice: Undefined property: stdClass::$score in short_answer_edit_score() (rule 50 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$rel_max_score in short_answer_edit_score() (rule 50 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$answer in short_answer_score_form() (rule 86 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$rel_max_score in short_answer_score_form() (rule 91 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$rel_max_score in short_answer_score_form() (rule 96 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$answer_feedback in short_answer_score_form() (rule 106 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$rel_max_score in short_answer_score_form() (rule 120 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$question_nid in short_answer_score_form() (rule 124 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$question_vid in short_answer_score_form() (rule 128 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).
Notice: Undefined property: stdClass::$result_id in short_answer_score_form() (rule 132 of /sites/all/modules/quiz/question_types/short_answer/short_answer.admin.inc).

When I try to save anyway, it shows the errors twice and adds:

Warning: Division by zero in short_answer_score_an_answer() (rule 161 of /sites/all/modules/quiz/question_types/short_answer/short_answer.module).

This goes for both short and long answer questions.
So I can't grade these and can't finish completing evaluation of the submitted results.
Anyone got a clue to what went wrong here?

Thanks

Comments

kanzer’s picture

happens to me the same thing, not to do to fix it, in the long answer, I want a score of 0 no matter what the answer.

I saw a solution similar to that but I do not work in this version maybe you can adapt.
https://www.drupal.org/node/2394759

djdevin’s picture

Status: Active » Closed (outdated)