Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5P get_content() on bool #554

Open
schoenerw opened this issue May 29, 2024 · 0 comments
Open

H5P get_content() on bool #554

schoenerw opened this issue May 29, 2024 · 0 comments

Comments

@schoenerw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant