H5P library used in the content is not valid

Hi,

I upgraded to the latest Moodle plugin (1.0-rc8) and upgraded to the content types (official-h5p-release-20170210.h5p), too. Now I can not add interactive video any more. Th error message is: The H5P library {$a->%library} used in the content is not valid.

Can U help me?

Thx,

Attila

thomasmars's picture

Hi,

I suppose you are trying to upload an old H5P when you get this error ? Your .h5p file is invalid according to this error message. Can you upload the .h5p file here, then we can determine what has happened to the file and why you're not able to upload it ?

- Thomas

I do not want to upload an .h5p file, but to create an interactive video. Here is what i do:

  • I give it a name
  • In the editor field, I choose "interactive video"
  • I add an mp4 video

If I click save now, I get an error message.

But if I click the "Add interactions" tab (just to view my video even when i do not want to add any interactions) before I click Save, everything is fine.

Strange behaviour.

Attila

thomasmars's picture

Thanks, I was able to reproduce this and have created an issue for resolving the bug at: https://h5ptechnology.atlassian.net/browse/HFP-786.

Thank you very much :-)

icc's picture

The issue is fixed and the bugfix is scheduled to be released shortly. Thank you for your patience!

Awesome, thank you very much for your hard work! Looking forward to this fix as it is currently stopping me from completing a new project. I will wait patiently. :)

I am new to this plugin, installed it on Moodle but when trying to add an activity tere is nothing to choose from in the editor and when trying to save I get this   error The H5P library {$a->%library} used in the content is not valid.
I am using Moodle 2.9 and the latest version of the plugin availble at Moodle.org (1.1 (2017041200))
Any help/advice would be appreciated. Thank you

febster's picture

Hi there!

I'm afraid I have the same problem on Wordpress. I've download a .h5p content from one site and am trying upload the same content onto another one of my websites. Unfortunately, I cannot do this and I get an 'invalid file' error message.

Here's exactly what is going on: https://screencast.com/t/dvfDpUGmZST2

Any ideas or clarification about this issue would be much appreciated. The file is question is attached below!

Kind regards,

Timothy

febster's picture

Hi guys,

I'm afraid also there appears to be an error in creating an interactive video from scratch, too. After I paste the Youtube video link, the video doesn't display after I click the 'create' button.

Here's again exactly what is transgressing: https://screencast.com/t/ZdvbIynAN9Ea

Did I miss something? Any ideas on a solution would be awesome!

Love H5P!!!!!!!!!!

Many thanks!

Timothy

febster's picture

Hi there again. It's been a busy night in New Zealand!

I tried to re-upload the exact content (the attached above one) to the exact site I download it from...And I got an 'invalid file' error message again. This site only has about 3 plugins in WP running (compared to my other site which has many more and still got the same problem), so I don't think there is a plugin conflict issue, since the site where the original content was created runs a very bare bones plugin operation. My guess is the issue is WP related.

Just seems odd that if I download the H5P content from the site where I created it, then try to re-upload  it to the exact same  site, I get an invalid error message.

Perhaps I'm missing something...Or, it's really late and my brain is not functioning in this Antartic air we just got...anyhow, hope that helps things along! 

Many thanks!

Timothy

thomasmars's picture

Hi Timothy,

Thank you so much for the detailed error report, a screencast makes our life so much easier :)

For your first error when uploading the Course Presentation:
This is caused by a WAV file in your H5P package. The file format is not white-listed by default, which means the H5P plugin will block any content that has files that are not white-listed for safety reasons.White-listing WAV for you should have been as easy as adding the word to a list, but unfortunately white-listing new file formats is not in place yet for Wordpress and Moodle. There is an issue for fixing this in https://h5ptechnology.atlassian.net/browse/HFP-897, but unfortunately you will have to remove the WAV files or wait for the fix before you will be able to upload this file again.

You could also navigate to h5p.classes.php and add wav to the $defaultContentWhitelist for a temporary fix, but be aware that this change will be overwritten the next time you update the plugin.

For your second error regarding creating IVs without any interactions:
This is a known bug, and has already been fixed. We are working on releasing a new version of IV right now, and will hopefully be able to release it today, or at the very least by the end of this week. You can see the issue at: https://h5ptechnology.atlassian.net/browse/HFP-786

A temporary workaround that you can use is going to the "interactions" tab before attempting to save the Interactive Video.

Thanks again,
Thomas

febster's picture

Hi there Thomas,

Many thanks for the help. Yes, I realised I had a couple of .wav in the file...I thought I only had MP3s...but upon investigating you were exactly right. I replaced the .wavs with .mp3 and it worked!

Many thanks for the update on the other issue.

Cheers!

Timothy

I'm getting the same problem using Moodle 3.1. My first interactive video worked fine but after that I get the error message.  I think I've got a workaround and that is to duplicate my original H5P interactive video and use that to make the rest of my interactive videos. But why am I still getting this error if it was supposed to have been fixed?

Found out we weren't up to date with H5P. Just moved to version 1.7 and no more error message.

BV52's picture

Hi BrainCandyLearning,

It's good to hear that this is working now.

-BV52