Hi,

When completing a quiz containing H5P questions, the quiz score is not updated and the result is not stored in the database (quiz_h5p_user_results table is empty).

This error is shown on screen when completing the quiz:

Notice: Undefined property: QuizQuestionH5PResponse::$result_id in QuizQuestionH5PResponse->score() (line 54 of sites/all/modules/quiz_h5p/QuizQuestionH5PResponse.class.inc).

Steps to reproduce

  • Install Quiz 7.x-4.0-rc2
  • Install Quiz H5P 7.x-5.0-alpha or 7.x-5.x-dev
  • Install H5P 7.x-1.14
  • Install H5P package/s
  • Create Quiz, create H5P content type and assign to the Quiz via the Manage Questions tab on the Quiz.
  • Complete the quiz and the score will not be shown, the notice above will appear

I faced this issue with jQuery versions 1.5 - 1.10 and both Bootstrap and non-Bootstrap themes.

Any ideas?

Comments

drupal_jon created an issue.

drupal_jon’s picture

OK, ignore please - this can be marked as Closed (works as designed).

This was caused by installing this module alongside Quiz 7.x-4.0-rc2. But as the project page says, this module is for Quiz 7.x-5.x, not version 4.

Thanks