Problems with Course Presentation

This problem happened to us on the core version of H5P in moodle 3.9.9.

Since the execution of the scheduled task \core\task\h5p_get_content_types_task in early may we have experienced various issues with H5P.

When we try to add a new course presentation, we have various lines with things like [field:group:coursepresentation:presentation]. 

no errors are referenced in the web console.

If we still try to create this content, we end up with an empty content.  This time, the web console have the following error : Uncaught TypeError: Cannot read properties of undefined (reading 'slides')

    at new ce (c1ac38a47495e7980e558d7996990b7bcabc0f96.js:1:35455)

    at H5P.newRunnable (h5p.js?ver=1680857919:926:16)

    at HTMLDivElement.<anonymous> (h5p.js?ver=1680857919:137:24)

    at Function.each (jquery.js?ver=1680857919:2:3053)

    at d.fn.init.each (jquery.js?ver=1680857919:2:996)

    at H5P.init (h5p.js?ver=1680857919:93:60)

    at HTMLDocument.<anonymous> (h5p.js?ver=1680857919:2821:11)

    at u (jquery.js?ver=1680857919:2:27579)

    at Object.fireWith [as resolveWith] (jquery.js?ver=1680857919:2:28337)

    at Function.ready (jquery.js?ver=1680857919:2:30124)

 

If we try to add the course presentation demo from the H5P site we can see this error message : Exception : Call to a member function get_content() on bool

And these two errors in the web console :

1) Failed to load resource: the server responded with a status of 404 ()

2) h5p.js?ver=1680857919:997 Uncaught ReferenceError: H5PIntegration is not defined

    at H5P.t (h5p.js?ver=1680857919:997:3)

    at HTMLDocument.<anonymous> (h5p.js?ver=1680857919:2717:18)

    at u (jquery.js?ver=1680857919:2:27579)

    at Object.fireWith [as resolveWith] (jquery.js?ver=1680857919:2:28337)

    at Function.ready (jquery.js?ver=1680857919:2:30124)

    at HTMLDocument._ (jquery.js?ver=1680857919:2:27307)

 

We have versions 1.25.5, 1.24.14 and 1.22.11 of course presentation installed. 

We used to have other problems like infinite loading for previously created resources but we managed to fix that by uninstalling and manually reinstalling a few H5P components.

We've had a lot of network issues on the day where the scheduled task \core\task\h5p_get_content_types_task executed so it's possible that we lost connection to the H5P server halfway through the task.

H5P worked correctly before that scheduled task executed back in may.

 

Content types: 
otacke's picture

Hi!

The error that you're describing ([field:group:coursepresentation:presentation]) hints to a missing editor component for Course Presentation. I think it is possible that this was caused by a cron job update that failed and was not handled correctly at some point, but this cron job update was not created by the H5P core team - the whole custom H5P integration that moodle uses (you call it "core version of H5P" which can cause a little confusion, because H5P itself has a core that has nothing to do with moodle) was done by moodle HQ.

Best,
Oliver