Hi. Thanks for latest fixes.

By the way, I still get this error under the following conditions:
- whenever a user takes a image question quiz and does not answer all the questions for that image.
- when the quiz is "finished", I get this error: (in my example only 4 questions were answered out of 10 i.e. the remaining 6 cross-hairs were left untouched, 4 were dragged to correct position

•Notice: Undefined offset: 1 in ImageTargetResponse->__construct() (line 616 of ...\image_target_question\image_target_question.classes.inc).
•Notice: Undefined offset: 1 in ImageTargetResponse->__construct() (line 616 of ...\image_target_question\image_target_question.classes.inc).
•Notice: Undefined offset: 1 in ImageTargetResponse->__construct() (line 616 of ...\image_target_question\image_target_question.classes.inc).
...
    Notice: Undefined offset: 8 in ImageTargetResponse->getReportFormResponse() (line 760 of .\image_target_question\image_target_question.classes.inc).
    Notice: Undefined offset: 8 in ImageTargetResponse->getReportFormResponse() (line 763 of .\image_target_question\image_target_question.classes.inc).
    Notice: Undefined offset: 9 in ImageTargetResponse->getReportFormResponse() (line 760 of .\image_target_question\image_target_question.classes.inc).
    Notice: Undefined offset: 9 in ImageTargetResponse->getReportFormResponse() (line 763 of .\image_target_question\image_target_question.classes.inc).
    Notice: Undefined offset: 10 in ImageTargetResponse->getReportFormResponse() (line 760 of .\image_target_question\image_target_question.classes.inc).
    Notice: Undefined offset: 10 in ImageTargetResponse->getReportFormResponse() (line 763 of .\image_target_question\image_target_question.classes.inc).

- I also get similar error when viewing results via: ..../node/quiz_nid/results where quiz_nid is the nodeid, and then clicking on the "view" link for the particular result

Comments

IKN’s picture

I am getting this exact same error when I submit an image question answer with multiple targets in it.
Notice: Undefined offset: 1 in ImageTargetResponse->__construct() (line 616

Matt Cooper’s picture

Assigned: Unassigned » Matt Cooper

I'm looking into this now

Matt Cooper’s picture

Status: Active » Needs review

Potential fix uploaded to the 7.x-4.x git.

Matt

Matt Cooper’s picture

Status: Needs review » Closed (fixed)