"Save Content State" Broken in Course Presentation


We've been trying to get this problem resolved for several months as this issue is a major problem for our institution. We are recieving dozens of complaints from students that the are enrolling in some of our longer H5P-based lessons in moodle, spending several hours making progress through the lesson, taking a break, and then returning to find that all of their progress has been lost. We really need it so that progress is tracked on an incremental basis throughout. There simply isn't another option for us, as some of our lessons are 4+ hours long.

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
    Any student in any course presentation makes progress through the course presentation, if they navigate away and return, all progress has been lost.

  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
    Moodle 3.5.8 (Build: 20190909)

  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.
    Course Presentation (1.21.4)

  7. Any browser console errors

  8. Any PHP errors

  9. Screenshots if it's a visual problem
    See video here: https://youtu.be/SkIoSuGrI5s

  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)

  11. Any recent changes to the browser you're using (new extensions, updates etc.)
Content types: 
BV52's picture

Hi cbuchanan,

I saw your other post in Nuria's thread and it looks like you may be experiencing the same issue. I've been trying to isolate the cause of the issue without luck. I am still suspecting that it could be a combination of certain contents but so far only the Dialog Cards "trigger" the issue. Removing this content type resolves the issue but as I mentioned in that post when I created my own content the issue does not present itself. If you can provide a sample content I can compare it with the contents that I already have and maybe we finally find the root cause of the issue. I would also like to ask if you can double check if there are ant errors in the browser console it will be a big help.



You can find this attached here.


BV52's picture

Hi cbuchanan,

Thank you I'll take a look at it. No promises though since this issue presents a very tedious approach as well as unusual in a sense that I can't reproduce it using the same types and number of activities.


Thank you for taking a look into it. Might it be beneficial if we could get you access to our Moodle admin? If you haven't been able to reproduce this error in other moodle environments, perhaps there would be something you could find that we are overlooking.

BV52's picture

Hi cbuchanan,

Thank you for the suggestion. I'll go through the content first and see what I can find. Since the issue shows on my side with the content it means that there is nothing is specific in your system that is causing the issue. This includes settings in H5P and Moodle since I am using a sandbox setup where I have most settings at default. I still suspect that it has to do with certain combinations of contents or a specific content causes it when it gets to certain number.