Missing dependency H5P.Timer 0.4 required by H5P.FindTheWords 1.4.

Forums: 

Hi!

I'm trying to run FindTheWords example on development Drupal mode, because I need to understand its code and learn how to make modifications, but when I add it to my Drupal page, I get those errors: https://i.imgur.com/9wdmrHG.png

These are the steps I've done:

  • I've downloaded FindTheWords from git (using git clone command).
  • I've put the folder inside Development folder.
  • I've added it to my Drupal main page.

How can I add those dependencies to fix this issue?

Thanks in advance!

otacke's picture

Hi Adrian!

It's usually easiest to first install a content type that you want to change the normal way (as this will install all the dependencies) and then to clone the repository to the development folder and work with it there. H5P will ignore libraries in the libraries folder if it finds an equivalent version or higher version in the development folder.

If you want to do it all by your own, you'd have to clone https://github.com/otacke/h5p-timer as well and potentially other libraries that might be missing.

Cheers,
Oliver

Hi Oliver!

Thank you. I prefer the first option as it's the simplest one. However, I cannot install the content type, because even though I've moved H5P-FindTheWords to a different folder than Development one, on Drupal it still appears as installed. Check screenshots: 

How can I fix this? 

otacke's picture

You'll have to go to the H5P library settings page and remove the library. The database entries are still there even if you remove the files, so H5P will not offer you a version for download until a later version is available on the H5P Hub.

Thanks! That worked.