I'm using the Interactive Book content type in Moodle 3.9.1. No attempts or completions are being saved. Is anyone working with this content type and have the same issue?
I created an interactive book just to test the activity. I have just tried it with a test student user and I can track some attempts, in the Completion activity report and also inside the activity. As a teacher, I see a link "View all attempts" and have access to several types of trackings. Have you activated the corresponding settings in the section "Attempt options"? Also, are you using it as a stand-alone activity or inserted into other Moodle resources?
Thanks for the reply. I have it set up as a stand alone activity and there are several question activities that are reporting attempts and scores on the summary page. I have the attempt options enabled for the activity. All other H5p activities I’ve used report attempts correctly so I do know how the settings should be.
I’m stumped by this and am pretty disappointed because I built two interactive books for a course and I guess I’ll have to start over with something else. Maybe for some reason I do not have all of the libraries installed correctly. We have them getting updated automatically each week.
Does anyone have any other tips?
Re: interactive book not saving or reporting attempts
I've already allowed showing of summary and submission in the behavioral settings. What's wrong?
Hello! I set it up like this. Is there something wrong? It's an H5P activity.
Hi Joanne,
You can fix this issue by make a small change to 1 file within Moodle (depending on your version).
I'm using 3.9.1 and this fix works for me:
Find this file in your Moodle installation: Moodle/h5p/classes.player.php
Go to line 349 and find this bit of code:
private function get_assets(): array {
// Get core assets.
$settings = helper::get_core_assets();
// Added here because in the helper we don't have the h5p content id.
$settings['moodleLibraryPaths'] = $this->core->get_dependency_roots($this->h5pid);
// Add also the Moodle component where the results will be tracked.
$settings['moodleComponent'] = $this->component;
$cid = $this->get_cid();
Replace it with this code, although you only need to insert the code in bold text:
private function get_assets(): array {
// Get core assets.
$settings = helper::get_core_assets();
// Added here because in the helper we don't have the h5p content id.
$settings['moodleLibraryPaths'] = $this->core->get_dependency_roots($this->h5pid);
// Add also the Moodle component where the results will be tracked.
$settings['moodleComponent'] = $this->component;
// SB Edited 21-10-2020 - No submit button existed for Interactive Book, below code fixes missing submit button on summary page
if (!empty($settings['moodleComponent'])) {
$settings['reportingIsEnabled'] = true;
} // End of fix 21-10-2020
$cid = $this->get_cid();
Save the file, go back to your Moodle and refresh the Interactive Book. Complete a question or interaction and go to the submit and summary page. You'll now see a green submit button.
Clicking it then submits the grade to Moodle gradebook and records the users attempt history.
So this tiny bit of code should fix the issue for you and everyone else.
Note: The fix has been implemented in the most recent Moodle versions for download as far as I know. This means when upgrading Moodle there will be no issue and Interactive Book will continue to work with the submit button available. This fix will help as there is no need for a major upgrade or full Moodle instance replacement.
Hope that helps!
Steve
I do have mod_hvp 1.21.0 installed. Could this be contributing to the problem?
Is there a setting somewhere that I might be missing?
Thank you in advance for your help!
happy to share with you the settings of my Interactive Book activity:
Are you using h5p core or the plugin?
Hello Hugo,
I'm using the h5p core. The button appears differently than what Matthias showed. In my case it appears under the navigation menu on the left and it looks like that:
And the attempt is recorded in the Grades, as Steven and Sara discussed in a different thread, it kind of makes sense if you understand how the integration works, but it's not an exhaustive record, this is true:
What is exactly your problem? Don't you see the button or is it about the grades integration? Or both?
Using the H5P Interactive Book example we are unable to see the submit button just like Joanne screengrab.
a) Moodle 3.8.x with the H5P plugin
b) Moodle 3.9.2 with the core functions
There are slight differences in the activity setup, slightly different code.
I created simple Books with Text page, True/False question, and Multiple Choice.
The H5P activity itself works OK, using a test Student, and records the results.
However, I see no Grades in the Moodle Gradebook at all, in either Moodle environment (3.8 with plugins or 3.9 core).
Beatriz, can you please verify this statement:
"And the attempt is recorded in the Grades."
I haven't tried out the interactive book with the Moodle core version.
Re: interactive book not saving or reporting attempts
Thanks for reporting this bug! We've created https://tracker.moodle.org/browse/MDL-69736 to fix it
Re: interactive book not saving or reporting attempts
Thanks so much. Now I know I'm not going crazy! Just to clarify the issue I'm having:
- Interactive Book with core Moodle 3.9.1
- I don't see any Submit button (only the Summary & Submit in the left menu, and the summary page does work)
- Nothing is ever in the attempts (it always reads Attempts: 0) and nothing is ever written to the gradebook.
Re: interactive book not saving or reporting attempts
Many thanks for creating this tracker item Sarah.
I suggest everyone in this thread to vote and watch this item, and also provide information if required.
We have an enthusiastic group of users in this thread who will be happy to test and feedback on any updates
Same. Also Moodle 3.9.1
H5P activity and have also tried with the oficial example.
I have tried everything and I am still having the issue. I have the Summary & Submit button but absolutely nothing is written to the attempts or to the gradebook.
Re: interactive book not saving or reporting attempts
I'm using the Interactive book ( as a plugin in my Moodle) and it seems to be very comfortable to arrange the activities on one topic in one task. But I've also faced the problem with recording the results of my students.
When a student have done one part of the book activities, he submits the results and can see the scoring. But when in some time he goes on in fulfilling the tasks, his previous progress is nilled and I can see only the last scoring.
Is that a problem for someone else? Is it possible to do anything with it?
Re: interactive book not saving or reporting attempts
I, also, am experiencing where the content of the students is not getting saved in the H5P Interactive Book after submitting. Does anyone have any insight into how to fix this?
I am a bit desperate as I created all my courses (7) using interactive books, and now it turns out nothing works!
Thanks for any comment on this issue!
Alicia
Re: interactive book not saving or reporting attempts
MoodleCloud currently has 3.9.2 and the interactive book issue mentioned here was fixed for Moodle 3.9.3 onward. However, we have good news for you: the MoodleCloud team is working for upgrading the Moodle version to 3.10.1 so, in about 2 weeks, all the MoodleCloud sites should be upgraded to this version
Kind regards from Barcelona!
Re: interactive book not saving or reporting attempts
I'm afraid this is how it works at present. The student needs to do it in one sitting then submit. they can then of course come back and redo it
https://h5p.org/node/1092410 see this H5p post
Scott