Upload my H5P library to moodle

Forums: 

Hi, 

I am a developer, I want to load my h5p type of tasks (my own library) in moodle, when I testing the library in drupal 7, everything loads and displays successfully, but I have a problem adding my content type to moodle. I got the following message: 

Note that the libraries may exist in the file you uploaded, but you're not allowed to upload new libraries. Please contact your administrator.                          missing-required-library : Missing required library (my h5p library)

Maybe someone came across a similar situation and can offer a solution?

otacke's picture

Hi!

Have you checked what the message suggests - checking whether the user that you're logged in as when uploading the file has the permission to install H5P libraries?

Is it a content file that you are uploading (then done via the H5P Hub) or is it a library file (then done via the library settings page)?

Best,

Oliver 

I logged into moodle as administrator and upload my .h5p file there with: Content bank/ upload/ ...

I logged into moodle as administrator and upload my .h5p file there with: Content bank/ upload/ ...

otacke's picture

Hi!

You may have to ask on the moodle forums then. The H5P integration into moodle core including the content bank was not done by the H5P core team, but by the moodle team - so it's more likely someone there knows why the file works when uploading using the H5P plugin (on Drupal) but not using moodle's integration (via the content bank). At least I am not familiar with the peculiarities of moodle's integration.

Best,

Oliver 

otacke's picture

Addendum: I can only guess that moodle possibly never installs missing libraries from within H5P files that are uploaded via the content bank but requires you to upload the file on the H5P settings page where you could upload H5P library files as well.