interactive book not saving or reporting attempts

interactive book not saving or reporting attempts

by Mia Musolino -
Number of replies: 33

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? 

Average of ratings: -
In reply to Mia Musolino

Re: interactive book not saving or reporting attempts

by Beatriz Rojo -
Hello Mia,
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?
In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Mia Musolino -

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?

In reply to Mia Musolino

Re: interactive book not saving or reporting attempts

by Matthias Giger -
Picture of Particularly helpful Moodlers
At least with the H5P plugin you need to activite the "Display summary" option in the "Behavioural settings", then a student gets a summary screen where he/she can submit the results which are then saved into the grade book. I haven't tried it for the built-in version yet.
Summary report for interactive book
Average of ratings: Useful (4)
In reply to Matthias Giger

Re: interactive book not saving or reporting attempts

by Joanne Pilapil -
Hello! I'm having problems with my H5P Interactive book! I and my students cannot find that Submit Report button beside the Restart button as you can see in my image below.

I've already allowed showing of summary and submission in the behavioral settings. What's wrong? 

 
In reply to Joanne Pilapil

Re: interactive book not saving or reporting attempts

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers
How are you presenting the content? Did you set up an H5P activity for the students to complete is it embedded with a filter?
In reply to Daniel Thies

Re: interactive book not saving or reporting attempts

by Joanne Pilapil -

Hello! I set it up like this. Is there something wrong? It's an H5P activity. 



In reply to Daniel Thies

Re: interactive book not saving or reporting attempts

by Joanne Pilapil -
Am I missing something in the settings?
In reply to Joanne Pilapil

Re: interactive book not saving or reporting attempts

by Steve Bilton -

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

In reply to Steve Bilton

Re: interactive book not saving or reporting attempts

by Brigitte Denton -
Thank you for this patch. I have inputted the code as directed without success. I am running Moodle 3.9.1 and won't have time to upgrade to 3.10 likely for another month. I have tested using both my student test account and admin account, in Chrome and Edge browsers. I also changed themes to rule out a theme conflict.

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!
In reply to Brigitte Denton

Re: interactive book not saving or reporting attempts

by Mia Musolino -
The issue was fixed in 3.9.3. We have upgraded and it’s now working. I didn’t try the separate patch.
In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Joanne Pilapil -
Hello, Beatriz! May I ask to see your settings?
Did you use this H5P button to insert the H5P from content bank?

In reply to Joanne Pilapil

Re: interactive book not saving or reporting attempts

by Beatriz Rojo -
Hello Joanne,
happy to share with you the settings of my Interactive Book activity:

In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Thank you. I have the same settings and see no submit button.

Are you using h5p core or the plugin?
In reply to Hugo Ribeiro

Re: interactive book not saving or reporting attempts

by Beatriz Rojo -

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?

In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Thank you Beatriz,
Using the H5P Interactive Book example we are unable to see the submit button just like Joanne screengrab.

This means there is no way to submit any grade, so nothing gets recorded. So far it seems you are the only one with this working. (h5p core).

Also, I just uploaded the same package into sandbox.moodledemo.net and got no submit button. Furthermore, I get "This content is displayed in preview mode. No attempt tracking will be stored. " while logged-in as a student... Pretty weird.

In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Mia Musolino -
the thread you link to is for interactive video, not interactive book. No attempts are stored and nothing is in the gradebook, not even the basic information that you show. I have other H5P activities reporting attempts and grades just fine.
In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Stuart Mealor -
I have tested the Interactive Book.
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).
IF the function of passing the Interactive Book result to the Moodle Gradebook is not working in the plugin, then that would explain why it does not work in 3.9 core (as it's essentially the same code).
Beatriz, can you please verify this statement:
"And the attempt is recorded in the Grades."
You are 100% saying that you DO get Grades in the Moodle Gradebook from the H5P Interactive Book?
Thanks.
In reply to Stuart Mealor

Re: interactive book not saving or reporting attempts

by Matthias Giger -
Picture of Particularly helpful Moodlers
Recording of grades in the interactive book version 1.2.9 works with the H5P plugin version 1.21.0 in Moodle version 3.9.2. However, it didn't work for me with the previous alpha versions of interactive book.

I haven't tried out the interactive book with the Moodle core version.
In reply to Stuart Mealor

Re: interactive book not saving or reporting attempts

by Beatriz Rojo -
Hello Stuart,
I had deleted the H5P activity. I have added it again and, today, the attempts are not registered in the H5P activity.🤨 Regarding the Gradebook, it was never registered, but this made sense to me because the activity was not passed and I think this is how, by now, H5P activities report to the Grades. 
So, no, it doesn't work for me now. Sorry if my explanation caused any confusion.
In reply to Beatriz Rojo

Re: interactive book not saving or reporting attempts

by Sara Arjona Téllez -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi everybody!
Thanks for reporting this bug! We've created https://tracker.moodle.org/browse/MDL-69736 to fix it smile
Average of ratings: Useful (2)
In reply to Sara Arjona Téllez

Re: interactive book not saving or reporting attempts

by Mia Musolino -

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.
In reply to Sara Arjona Téllez

Re: interactive book not saving or reporting attempts

by Stuart Mealor -

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 smile

In reply to Mia Musolino

Re: interactive book not saving or reporting attempts

by Joanne Pilapil -
Hi, I'm having the same problem! Were you able to solve this problem?
In reply to Joanne Pilapil

Re: interactive book not saving or reporting attempts

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Same. Also Moodle 3.9.1

H5P activity and have also tried with the oficial example.

In reply to Joanne Pilapil

Re: interactive book not saving or reporting attempts

by Mia Musolino -

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. 





In reply to Mia Musolino

Re: interactive book not saving or reporting attempts

by Olga Bezzabotnova -

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?

In reply to Olga Bezzabotnova

Re: interactive book not saving or reporting attempts

by Curtis Schlak -

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?

In reply to Curtis Schlak

Re: interactive book not saving or reporting attempts

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
This was fixed in Moodle 3.9.3. Check https://tracker.moodle.org/browse/MDL-69736
In reply to Hugo Ribeiro

Re: interactive book not saving or reporting attempts

by Curtis Schlak -
Thank you! I upgraded and you're right. Thank you. I apologize for the noise.
In reply to Hugo Ribeiro

Re: interactive book not saving or reporting attempts

by scott hallman -
Not sure if this is related but I have noticed that its ok and submit button is there via h5p blue / black, however if I try to embed an activity in a page using the h5p atto button and get from content bank, then there is no submit button. Is there a setting or is this design or the same bug not fixed in all places?

In reply to Hugo Ribeiro

Re: interactive book not saving or reporting attempts

by Alicia Rosas -
I am having the exact same problem with interactive book not saving or reporting attempts. I see this was fixed with a patch, but I am using MoodleCloud. ¿Is there a way I can fix the problem in moodlecloud?
I am a bit desperate as I created all my courses (7) using interactive books, and now it turns out nothing works!
I created the interactive books in the content bank. 

Thanks for any comment on this issue!

Alicia
In reply to Alicia Rosas

Re: interactive book not saving or reporting attempts

by Sara Arjona Téllez -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Alicia!
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 smile
Kind regards from Barcelona!
In reply to Olga Bezzabotnova

Re: interactive book not saving or reporting attempts

by scott hallman -
Hi Olga
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