h5p and moodle, only admins can create/view some content types
Submitted by krajewsk@augsbu... on Thu, 08/29/2019 - 23:10
We've been running h5p for a few years. Our new server for the new academic year is having this strange problem. Any ideas? Details below.
Non-admins are unable load the h5p plugin (or view h5p content). moodle admins can load and view fine.
Chrome console reports (in this case a student viewing an h5p video)
0780cc9cf6272850b298f6ce8fb7755c7590ce75.css:1 Failed to load resource: the server responded with a status of 404 () 0780cc9cf6272850b298f6ce8fb7755c7590ce75.js:1 Failed to load resource: the server responded with a status of 404 () h5p.js?ver=2019081600:966 Unable to find constructor for: H5P.InteractiveVideo 1.20 H5P.error @ h5p.js?ver=2019081600:966 h5p.js?ver=2019081600:1092 Uncaught TypeError: Cannot read property 'getCopyrights' of undefined at Object.H5P.getCopyrights (h5p.js?ver=2019081600:1092) at HTMLDivElement.<anonymous> (h5p.js?ver=2019081600:174) at Function.each (jquery.js?ver=2019081600:2) at init.each (jquery.js?ver=2019081600:2) at Object.H5P.init (h5p.js?ver=2019081600:93) at HTMLDocument.<anonymous> (h5p.js?ver=2019081600:2797) at c (jquery.js?ver=2019081600:2) at Object.fireWith [as resolveWith] (jquery.js?ver=2019081600:2) at Function.ready (jquery.js?ver=2019081600:2) at HTMLDocument.H (jquery.js?ver=2019081600:2) 0780cc9cf6272850b298f6ce8fb7755c7590ce75.css:1 Failed to load resource: the server responded with a status of 404 ()
A moodle admin can view this no problem.
User roles are at their defailt settings. No content types are marked as restricted. Student shown below.
Moodle 3.6.5+ (Build: 20190816)
H5P 1.19.1 / 2019081600
krajewsk@augsbu...
Thu, 08/29/2019 - 23:26
Permalink
re: solved, change authenticated user role permissions
Smarter people than have been working on this and found the solution. We need to add permissions to the authenticated user role.
Once we added "See and interact with H5P activities (mod/hvp:view)" explicitly to Allow for the authenticated user role students and faculty could see the h5p content.
Very odd since the roles of student and instructor were already set to have those permissions.
-- Scott
BV52
Fri, 08/30/2019 - 18:41
Permalink
Hi Scott,I'm glad you got it
Hi Scott,
I'm glad you got it working and thank you for getting back to us with your resolution.
-BV52