Interactive Book failing to install
Submitted by aoelearning on Tue, 11/29/2022 - 08:51
Forums:
Since last week, Interactive Books fail to install.
- The files upload, and a success message is shown, but then it shows "loading, please wait" forever.
- The same issue happens at h5p.org.
- The files were made with Lumi Desktop.
Content types:
aoelearning
Tue, 11/29/2022 - 09:18
Permalink
H5P 1.22.4
BV52
Tue, 11/29/2022 - 19:21
Permalink
Hi aoelearning,For some weird
Hi aoelearning,
For some weird reason uploading the content into H5P.com first before uploading to H5P.org fixes the issue: https://h5p.org/node/1326010
-BV
otacke
Wed, 11/30/2022 - 12:20
Permalink
Hi all!I had a brief check on
Hi all!
I had a brief check on both the original file and the one H5P.com (or WordPress) would export after uploading.
I did not fully investigate the issue, but one striking difference is inside the `h5p.json` file. The version numbers of libraries are supposed to be numbers, while in the original file that was uploaded here they are strings. Those strings in theory can be interpreted as numbers, and I assume that on some platforms that is done when uploading the file while on others it is not and in the latter case, something fails silently.
The interesting question is why there were strings in the first place. I tried to verify that Lumi exports H5P files with strings instead of numbers, but that was not the case. Everything was fine, and the node.js port in fact expects numbers as well. Could be something in the storage model of Lumi or one of the modules it uses maybe? Have never looked into how that is implemented, but at least in theory, some module might return a string where a number is expected and the value might need casting to a number first. You'd want to inform Sebastian of Lumi - not sure if he has the time to follow up posts here.
Cheers,
Oliver
aoelearning
Wed, 11/30/2022 - 10:40
Permalink
We found that uploading it to
We found that uploading it to an older moodle version first, and then adding it to Totara worked as well.