Results page in Moodle not displaying data

BV52's picture
We have the H5P plugin installed on Moodle and are testing the Course Presentation type with a Summary. The grade for a user does appear in the gradebook, but when you click on the activity to go to the Results page, no data is displayed for Score, Maximum Score, or Finished. When you click on the Report link, you can view the individual student's responses, but none of that data is displaying in the table on the Results page. It looks like an issue with the JS that fetches the data? Any advice?
BV52's picture

Hi meltonml,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

Hi VB52,

Here is the information you requested:

  1. As a teacher, create a course presentation with a summary in a Moodle course
    As a student, view the presentation and answer the summary questions
    As a teacher, view the student's grade in the gradebook (properly displays the student's score)
    As a teacher, click on the Course Presentation activity link in the gradebook to view the Results (not working; displays the student's Score as 0)
    As a teacher, click on the Results link to view the student's answers (properly displays the student's score and gradebook score)
  2. Moodle 3.6.2
  3. Desktop
  4. Chrome, Safari, Firefox (OSX)
  5. Version 1.12 (2018110600)
  6. Course Presentation (1.20.4) and Summary (1.10.2); H5P file attached for reference
  7. Screenshots attached for reference
BV52's picture

Hi meltonml,

I am unable to reproduce this issue on my end using the content you provided nor a content I created. The score is showing correctly on all 3 instances. Try checking the maximum/passing grade in the settings if this will resolve the issue. Also check if the issue will happen if there are other activities inside the Course Presentation.

-BV52

Hi BV52, 

There are no other activities in the Course Presentation, just the Summary. The maximum grade is set to the default of 10 and the passing grade is set to 8. Should these settings be different to allow the Results table to display the Score? Thank you.

BV52's picture

Hi meltonml,

Sorry I am still unable to reproduce the issue on my side. Would you mind trying to add one simple activity like True/False and see if the issue persists. Also I am attaching a screenshot of the score settings on my end.

-BV52

Hi BV52,

I added a single true/false activity, and now I'm not able to see even the max score. When I purge the site caches on that page, I get this error:

[07-Mar-2019 08:07:43 America/New_York] Debugging: You need to update your sql to include additional name fields in the user object. in

  • line 3463 of /lib/moodlelib.php: call to debugging()
  • line 133 of /mod/hvp/classes/results.php: call to fullname()
  • line 106 of /mod/hvp/classes/results.php: call to mod_hvp\results->get_human_readable_results()
  • line 208 of /mod/hvp/ajax.php: call to mod_hvp\results->print_results()

[07-Mar-2019 08:07:50 America/New_York] Default exception handler: Invalid course module ID Debug:
Error code: invalidcoursemodule

  • line 494 of /lib/setuplib.php: moodle_exception thrown
  • line 33 of /mod/hvp/grade.php: call to print_error()

Our test server is not on HTTPS; could that be an issue?

Thank you!

thomasmars's picture

Thanks for reporting this.

Should be fixed in https://github.com/h5p/h5p-moodle-plugin/commit/24cdadda0769bb03ef161414174b81689f639f72. Will be part of a hotfix for the plugin.