'MOODLE: What does it mean to aggregate h5p assets?
I'm having an issue where my H5P assets are not loading in my 3.11.2 Moodle site.
Unable to find constructor for: H5P.CoursePresentation
A forum post on the H5P site suggested that I add $CFG->mod_hvp_aggregate_assets = '0';
to the config file on the LMS. However, there are no resources within Moodle to this line, no other forum posts to go off and it is not referenced in the sample config file provided by Moodle either.
Upon testing the config, the content now loads.
Does anyone know what this does? Are there any implications that could affect other parts of the site?
Solution 1:[1]
Looks like this is javascript code rather than php code.
First thing I usually do is to clear the cache.
Could you try turning off the js cache in moodle and see if that fixes it.
You can either add this line to config.php
$CFG->cachejs = false;
Or disable it via Site administration > Appearance > AJAX and Javascript > Cache Javascript
Refresh and if it works then it was probably just cache. Don't forget to turn it back on.
If it still doesn't work, then try recreating the presentation but one step at a time. Save, test, until it breaks.
Solution 2:[2]
There is something wrong with the database. What I did was empty h5p tables, reconfig programmed task for h5p to run immediately, wait for the automatic installation of the libraries. Then it works.
be careful, you have to backup everything
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Russell England |
Solution 2 | Ricardo Navia |