Presentation Error: Unable to find constructor for: H5P.CoursePresentation 1.22

Hello,

Moodle 3.7, hvp Version 1.21.00, hvp Course presentation version 1.22.2.
All contents are working, only Course presentation returns error in console.
I discovered a javascript error in the browser console:   

h5p.js?ver=2020080400:976 Unable to find constructor for: H5P.CoursePresentation 1.22

jquery.js?ver=2020080400:2 jQuery.Deferred exception: Cannot read property 'getCopyrights' of undefined TypeError: Cannot read property 'getCopyrights' of undefined

    at Object.H5P.getCopyrights (http://10.36.37.8/mod/hvp/library/js/h5p.js?ver=2020080400:1115:16)

    at HTMLDivElement.<anonymous> (http://10.36.37.8/mod/hvp/library/js/h5p.js?ver=2020080400:174:30)

    at Function.each (http://10.36.37.8/mod/hvp/library/js/jquery.js?ver=2020080400:2:2976)

    at S.fn.init.each (http://10.36.37.8/mod/hvp/library/js/jquery.js?ver=2020080400:2:1454)

    at Object.H5P.init (http://10.36.37.8/mod/hvp/library/js/h5p.js?ver=2020080400:93:60)

    at HTMLDocument.<anonymous> (http://10.36.37.8/mod/hvp/library/js/h5p.js?ver=2020080400:2821:11)

    at e (http://10.36.37.8/mod/hvp/library/js/jquery.js?ver=2020080400:2:30005)

    at t (http://10.36.37.8/mod/hvp/library/js/jquery.js?ver=2020080400:2:30307) undefined

S.Deferred.exceptionHook @ jquery.js?ver=2020080400:2

 

The php log shows no errors.

Reinstallation von H5P did not help.

New upload of Libraries did not help.

When I insert into config.php

$CFG->mod_hvp_aggregate_assets = '0';

the presentation work again and the javascript error is gone. When removing this command, the presentation does not show up any more.

Any idea?

I do have a problem with course presentations. The problem does not happen, if I set  "$CFG->mod_hvp_aggregate_assets = '0';" in the config.php.

Can anybody tell me, whether its a good idea, to set mod_hvp_aggreate_assets = 0 in a live site with a lot of different h5p content types?

Thank you

Wolfgang

This is what I did. Do not drop the database tables of H5P, but empty H5P tables. This is so delicate you have to backup everything