Hi Rafael!
That would happen if the content file was created on H5P.com which already runs a newer core version and CoursePresentation 1.25, or if somebody built and installed libraries from the source repositories.
The workaround (until the WordPress plugin got updated) is to upload the file with a user role that is not allowed to manage H5P libraries or to upload the content to H5P.org and download it from there, please cmp. the same issue on the H5P forum. https://h5p.org/comment/47496#comment-47496
Best,
Oliver
Hi Oliver,
many thanks for your promptly reply.
The first workaround option didn’t work (upload the file with a user role that is not allowed to manage H5P libraries). We tried to upload with an “Editor” user and we got the errors below:
Validating h5p package failed.
Missing required library H5P.AdvancedText 1.1
Missing required library H5P.Image 1.1
Missing required library H5P.SingleChoiceSet 1.11
Missing required library H5P.SoundJS 1.0
Missing required library H5P.Transition 1.0
Missing required library FontAwesome 4.5
Missing required library H5P.JoubelUI 1.3
Missing required library H5P.FontIcons 1.0
Missing required library H5P.Question 1.5
Missing required library H5P.Blanks 1.14
Missing required library H5P.TextUtilities 1.3
Missing required library H5P.Video 1.6
Missing required library H5P.Summary 1.10
Missing required library H5P.DragText 1.10
Missing required library jQuery.ui 1.10
Missing required library H5P.MultiChoice 1.16
Missing required library EmbeddedJS 1.0
Missing required library H5P.CoursePresentation 1.24
Regarding the second option (“upload the content to H5P.org and download it from there”), could you please explain the procedure to do so? We are not familiar with the plugin.
Thank you,
Rafael
Hi Rafael!
To be honest, I am not sure how you would receive that very message.
H5P files contain all the libraries that are required to use them. H5P core will install missing libraries from that file if the user has sufficient rights.
So, in theory, if you now uploaded with a role with insufficient rights, there may be libraries missing that are within the file, but H5P core will not install them. But you’re saying that H5P core in version 1.24 is already installed and thus should be its dependencies (the ones listed here are among them).
Could you please check _where_ CoursePresentation 1.24 is installed? As far as I know – never used the WordPress plugin with H5P in multisite mode before – every site instance needs to manage its own set of H5P libraries. There’s no single central storage of libraries. So you may have tried to upload the 1.25 file where not even 1.24 is installed.
If you have installed Course Presentation 1.24 on one site but if you uploaded the file on a site where 1.24 was not installed, you might be facing the error message that you now see. In that case, you’d need to install CoursePresentation 1.24 on that site first (with sufficient rights) via the H5P Hub (https://h5p.org/update-all-content-types).
H5P.org is a site to test H5P which is also running an H5P plugin (on Drupal, but that does not concern the content) with all libraries in their “officially” released version. You can register an account there which would give you a user with limited rights. Then uploading the 1.25 file will try to load the content without installing the newer libraries and in this case that should work (the data structure of CoursePresentation content did not change from 1.24 to 1.25). You’ll end up with 1.24 content that you can download via the Reuse button at the bottom of your content and then upload that file to your site.
If none of that works, someone from the H5P core team might need to help you out. I am merely a bystander and not affiliated with them.
Best,
Oliver
Plugin Author
icc0rz
(@icc0rz)
Hi Rafael,
Where did the H5P file come from?
It looks like you won’t be able to upload it until the latest version of the WordPress plugin is ready and released.
Hi @otacke and @icc0rz,
many thanks for your support.
Actually the first option provided by @otacke has worked!
I installed Course Presentation as “Administrator”, then my colleague (as “Editor”) could upload all the content required by the key-users.
Many thanks again!
Best,
Rafael