Find the Words display blank

Hello,

We are using "Find the Words" in our Moodle 4.1, but it display nothing. There is message show in Developer Console. Pls help to fix.

Uncaught TypeError: can't access property "call", Timer is undefined

    Timerhttps://hsk.aum.edu.vn/pluginfile.php/1/core_h5p//cachedassets/7edd38847...

Thanks

Content types: 
otacke's picture

If "Timer" is undefined, this might indicate that the "H5P.Timer" library is not loaded properly. Would not know a reason why, but it might require to reinstall it.

We tried uninstall and then reinstall Timer, it does not help.

otacke's picture

  1. And how did you do that?
  2. The dependency to Timer is in Find the Words. Have you reinstalled that one as well? 

Uninstalled all H5P content types and H5P libraries (/h5p/libraries.php)

And then run H5P scheduled task to update content types and libraries (/h5p/overview.php)

All are updated. But it still does not work.

otacke's picture

I see. Moodle's own H5P integration then. The thing with that integration is that it seems to uninstall libraries, but does in fact not if any content is still using it (which makes sense to not break content, but then you should not be able to (seemingly) delete the library in the first place).

Try it yourself:

  1. Create some content (does not matter what, Accordion is first and easy to find).
  2. Delete the respective library via h5p/libraries.php.
  3. Check your content: It's still working.
  4. Go back to h5p/libraries.php and see that the library is still there.

In order to really delete a library, all contents depending on it (I think not only Find the Words uses it) would need to be deleted first. And even then I'd not be sure that the library is ultimately deleted.

The H5P plugin for Moodle has environment variables that you could temporarily set in order to be able to reinstall libraries, but I can't tell if Moodle's own H5P integration has something similar. You might want to reach out to MoodleHQ who built that integration and ask them how this can be done.