H5P get_content() on bool
Opened this issue · 0 comments
I have 2 moodles on different servers.
Moodle A: Version 4.3, This moodle was updated from version 3.9. It contains courses with new h5p activities from h5pactivity and old hvp activities from mod_hvp.
Moodle B: Version 4.3.3+ with mod_hvp installed. This moodle was installed as moodle 4.3, not updated from older versions.
When I import a course from Moodle A in Moodle B, new h5p are playing well. Old hvp from mod_hvp throw the following error:
Call to a member function get_content() on bool Debug:
Error code: generalexceptionmessage
- line 258 of /mod/hvp/classes/file_storage.php: Error thrown
- line 2537 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\file_storage->cacheAssets()
- line 194 of /mod/hvp/classes/view_assets.php: call to H5PCore->getDependenciesFiles()
- line 90 of /mod/hvp/classes/view_assets.php: call to mod_hvp\view_assets->getdependencyfiles()
- line 44 of /mod/hvp/view.php: call to mod_hvp\view_assets->__construct()
This error seems to be the same error as reported here, some 4 years ago:
https://h5p.org/node/580545
I am no moodle developer, so I cant fix this. Is there anybody who can solve this problem or give advice, how to avoid this problem.
Best wishes
Wolfgang