Interactive Book failing to install

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.

 

Attachments: 
Content types: 

  • H5P 1.22.4 2022012000
  • Interactive Book (1.5.1)
  • Moodle 3.4.9 (Build: 20190513)
  • Totara Version 13.25 (Build: 20221031.00)
BV52's picture

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's picture

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

We found that uploading it to an older moodle version first, and then adding it to Totara worked as well.