Interactive Book: Missing "Submit Report" Button

Hello Community,

Having problems submitting results in Interactive Book (Moodle H5P activity) and wonder if anyone has experienced the same issue. The green 'Submit report' button does not appear on the score screen - only 'Restart' is shown - so there's no completion trigger and no results are ever sent to the gradebook. Tested in Moodle 3.9 (prod) and 3.9.2 (local) and Chrome / Firefox / Edge. Grading is enabled and so is attempt tracking. There's an open issue on Moodle Tracker https://tracker.moodle.org/browse/MDL-69736 suggesting that it might be related to Moodle H5P core, but what puzzles me is that a similar behaviour is observed in WordPress 5.5.1 with H5P plugin 1.15.0 too.

Would really appreciate any thoughts.

Thank you in advance!

Anton

Content types: 
otacke's picture

Hi Antonskyy!

You will have to tick the option "Enable LRS dependent content types" in the plugin settings of H5P which will then set a flag for reporting being enabled (H5PIntegration.reportingIsEnabled as mentioned on the issue tracker). It's a non-intuitive procedure unfortunately.

I am not sure how that was implemented in the moodle core version where that flag could always be set to true automatically - so yes, it seems to be a problem in the moodle core version.

Best,
Oliver

Thank you for the WordPress hint Oliver, that worked a treat. Much appreciated

otacke's picture

You're welcome! As I mentioned, it's quite a hidden feature ;-)

BV52's picture

Thanks Oliver it would have taken me a good amount of time looking for the cause of the issue.

otacke's picture

Da nicht für! :-D (Google Translate is not that accurate, but maybe you get the idea)

Sebastien G.'s picture

Hi Everybody,

We use Moodle in my school and we have the same issue, is the solution Enable LRS content is working for Moodle? Because, for now, we can see the results or the answers of our students.

Thanks in advance for your answers,

Sébastien G.

Hi Sebastien,

Yep, we had that issue on Moodle too which was fixed in MDL-69736 so should work okay if you upgrade to Moodle 3.9.3, 3.10 or higher. If you can't upgrade, the fix is just a few lines of code in one of the H5P core library files - post back if you need help with that. Moodle app on iOS is still glitchy on that front so opened another tracker issue MOBILE-3700.

Cheers,

Anton

 

I won't be able to upgrade until May. I will be grateful for the code patch so I can update my core files. I am running Moodle 3.9.1.

You'll need to insert the following if statement after line 356 (that's $settings['moodleComponent'] = $this->component;) in /h5p/classes/player.php

    if (!empty($settings['moodleComponent'])) {
        $settings['reportingIsEnabled'] = true;
    }

 

Here's what it should look like (see lines 357-359)

Hope this helps!

Anton

Thank you for the patch. I have entered it as shown. However, I am still not seeing the Submit button show up when testing in my student test account. I have tested in both Chrome and Edge.

Is there another setting that I may be missing?

I am running the following:

  • Moodle 3.9.1 (don't have time to upgrade until likely May)
  • Adaptable Theme 3.0.2 (avoiding upgrade due to current formatting issues)

 

I do have H5P (mod_hvp) 1.21.0 installed. Could this be conflicting with the core H5P?


Thanks again for all the help! I greatly appreciate it.

Brigitte

 

Moodle Version 3.9.1

Thank you! I have added the code as directed, but am still not seeing the submit button. I have tested using a student test account as well as my admin account in both Chrome and Edge browsers.

I also switched themes to rule out a theme problem.

I do have hvp_mod 1.21.0 installed. Could this being creating an issue?

Thanks again for all your help!

Brigitte

Sorry to hear that, Brigitte. It's odd as it worked fine in our case but circumstances differ, I guess. Not sure how H5P plugin and H5P core sit together (any experts reading this please do step in).

We upgraded from 3.9.0 to 3.9.2 and removed the H5P plugin at the same time. None of our existing H5P content seemed to be affected and we carried on with creating new content within the content bank.

You're right though - the plugin might be overriding the core in your case. I'd suggest copying your prod instance to a staging or local environment and seeing if removong the H5P plugin solves the problem without affecting existing functionality. It's quite a bit of extra work but being cautious never hurt.

Cheers,

Anton

Hi Anton,

Thanks for getting back to me. I had a chance to test my theory and removed the mod-H5P plugin. This did not solve the issue.

Thanks for helping.

Brigitte