H5P Upgrade

hayunike
Forums
Hello, I've wanted add H5P libraries into my Opigno. But when I tried, it gives two errors: The system was unable to install the Interactive Video component from the package, it requires a newer version of the H5P plugin. This site is currently running version 1.7, whereas the required version is 1.9 or higher. You should consider upgrading and then try again. The uploaded file was not a valid h5p package How can I upgrade the H5P? Edit: I cannot see any libraries installed. I tried the free cloud on myopigno and it has the available question types there, but not in my instance.
Profile picture for user James Aparicio
James Aparicio

Hi hayunike,

Hi hayunike,

One thing is to update the libraries, the other is to update the module.

On installation Opigno automatically installs the libraries, if it was not installed on your instance it is probably because of folder permissions.

To add the latest version of the libraries it is required that at least version 1.9 of the h5p module is installed.

To do that, download the latest version of the h5p module from https://www.drupal.org/project/h5p. Then replace the h5p folder inside /profiles/opigno_lms/modules/contrib/h5p. Then run update.php on your site by going to www.yoursite.com/update.php.

Once you have done that, you can add the latest libraries like you are trying to do now.

 

Best regards

hayunike

Thank you

Thanks for the info. I could add the necessary libraries.
kiran

How to do Score Interpretation in H5P?

I have following sample questions, Question1: How happy are you? Answer: 0 1 2 3 4 Question2: How sad are you? Answer: 0 1 2 3 4 Here the option are single select and the user can select any value. At the end of the quiz i want do Score Interpretation. i,e Example: if user as select 2 for Q1 and selected 3 for Q2, then sum up 2+3=5 the score. If the sum( all score) is in the Range 0-2 then display "Not confident" Range 3-6 then display "Confident" How to achieve this, which component should i use for the requirement? Is there any example file avialable. Thanks Max
markusd1984

retrieve h5p module updates possible vs manual update?

My h5p version installed with opgino 1.27 is h5p Version: 7.x-1.32 The current listed [h5p version is 1.33](https://www.drupal.org/project/h5p "h5p version is 1.33") (Couldn't see a 1.9 though). Why is the h5p module not showing as an update in opigno? Is that due to a custom implementation? Can we change that so we can get notifications of new versions /and update it that way?` UPDATE: I replaced the h5p folder but running update.php returned No pending updates. Modules > is still showing 1.32 even though the the folder has been entirely replaced and h5p.info contains v 1.33. Do I have to manually remove the module first and re-install?
Profile picture for user James Aparicio
James Aparicio

Hi markusd1984,

Hi markusd1984,

If you replaced the h5p folder with the 1.33 and it is still showing version 1.32 its because you probably have the module duplicated.

Where exactly did you put the module? /sites/all/modules or profile/opigno_lms/modules/contrib ?

Best regards

markusd1984

Thanks James,

Thanks James, I have replaced the h5p folder within /profiles/opigno_lms/modules/contrib/h5p as per your recommendation above, no h5p folder within /sites/all/modules. Should I remove it and put it there instead or is there any way to have it automatically be included in updates? (would be much better)
Profile picture for user James Aparicio
James Aparicio

Hi markusd1984,

Hi markusd1984,

 

That is very very strange.

Please check the system database table for the h5p module location and make sure the .info file in that location is version 1.33.

 

Best regards

markusd1984

Sorry my mistake, I still had

Sorry my mistake, I still had the old version in the same folder preventing the new one from working :) v1.33 is now showing. Should that not be included in notifications for new versions? Thanks James.