H5P save content state

gillian
Forums
Hello. We have a problem with this feature. In Configuration- System- H5P we ticked Save content state. It works for administrators & student managers/teachers, but not for users/students. So when they start working on a lesson, if they stop then go back, what they've done isn't saved. Have we missed something? Gillian
gillian

H5P save content state

Any ideas to solve this, please? It's a real problem
Pepe

Hello,

Hello, I have the same issue. Did you found a solution ? Thanks.
gillian

H5P save content state

No, no solution yet. We're still waiting & hoping...
Pepe

Thanks for your reply. I'm

Thanks for your reply. I'm trying to find solutions on this. On /admin/people/permissions I tried to give all the permissions to authenticated user : Update libraries Access all H5P results Access own H5P results Access h5p results for own content Create restricted H5P content types Download enabled for all H5Ps Download enabled for own H5Ps Embed enabled for all H5Ps Embed enabled for own H5Ps H5P Editor Install recommended H5P Libraries I cleaned the cash after, but it not made any difference, what they've done isn't saved. I will try to identify now which permission the student managers and teacher have, that the user doesn't have, that make this difference.
Pepe

We can also find in :

We can also find in : /admin/config/group/permissions/node/class /admin/config/group/permissions/node/course But I have no idea which permission could make that the student state is not saved for H5P. I have also tried to search saveFreq and save_content_state in the code of opigno, but I didn't found any information that can help me to understand the problem :/
axel

Hello

Hello

Did you activate "save content state" option at the configuration page of H5P: /admin/config/system/h5p ?

If so, for which H5P content type do you get this problem? all of them or juste some of them ?

Pepe

Thanks Axel for your reply.

Thanks Axel for your reply. Yes I have activate "save content state" in admin/config/system/h5p. With 30 or 3 seconds fot Save content state frequency it works well for admin, and not works for student. I get this problem with H5P course presentation, and H5P Quizz question set : the save content state works well for admin, and doesn't work for student. I'm using Opigno LMS 1.27.0. I didn't test other H5P content on this bug. I just tested Image Slider, it seems that it not works for both (admin and student) the picture where we were when we left is not saved. Is there other tests that I can make to help understanding the problem ?
axel

You're right, we were able to

You're right, we were able to reproduce the problem.

We found the reason, it's because the function is checking if the user can access the content. But technically the user cannot access directly contents, outside the quiz context. Direct access to the node is denied unless the user has permission "access question outside quiz".

We are going to check with H5P team to fix it.

Pepe

Cool, well done, thanks for

Cool, well done, thanks for your reply :)
gillian

H5P save content state

Good news- I hope they come up with a solution. Thanks, Axel. And thanks for picking this thread up, Pepe!
admin

In the meanwhile before the

In the meanwhile before the next release to fix the issue for non admin users, in the file profiles/opigno_lms/modules/contrib/h5p/h5p.module, you can simply return true at the beginning of the function h5p_content_user_data_access Best regards
admin

Here is the updated code that

Here is the updated code that will be part of next release.

http://cgit.drupalcode.org/quiz/commit/?id=6f680cc