Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

When trying to download contents from the H5P hub I'm getting this error in the php_error.log:

[07-Feb-2023 16:42:36 Europe/London] Default exception handler: Exception - chmod(): Argument #1 ($filename) must be of type string, resource given Debug:
Error code: generalexceptionmessage
* line 247 of \mod\hvp\classes\framework.php: TypeError thrown
* line 247 of \mod\hvp\classes\framework.php: call to chmod()
* line 415 of \mod\hvp\editor\h5peditor-ajax.class.php: call to mod_hvp\framework->fetchExternalData()
* line 307 of \mod\hvp\editor\h5peditor-ajax.class.php: call to H5PEditorAjax->callHubEndpoint()
* line 133 of \mod\hvp\editor\h5peditor-ajax.class.php: call to H5PEditorAjax->libraryInstall()
* line 289 of \mod\hvp\ajax.php: call to H5PEditorAjax->action()

Any idea anyone?

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
@Adam,
Are you an admin or a simple teacher on your Moodle site?
If the Moodle contents have been installed by your admin, then you could go to your course's Content Bank and create your H5P activities there, then export them to your computer and re-import them in the h5pactivity plugin.

Or you could install Lumi on your own machine, create H5P activities there, export and re-import to your Moodle site.

But let's hope someone finds a solution to our problem to avoid having to resort to workarounds.
Average of ratings: Useful (1)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Same problem here. Here are the details:

Moodle 4.1.1 (Build: 20230116).
PHP 8.0.
H5P mod_hvp version 1.23.0 dated 2022121200 Additional plugin (the black icon).
H5P settings: Use H5P Hub mod_hvp | hub_is_enabled Yes

Add an activity or resource / Adding a new Interactive Content / Get (a content) / Install / Installing : nothing happens!

Browser Console says: TypeError: e.contentTypes is undefined
value https://MYMOODLESITE/mod/hvp/editor/scripts/h5p-hub-client.js?ver=2022121200:54 (etc.)

1.- On my Moodle site the core H5P mod_h5pactivity works fine, scheduled tasks retrieves h5p contents from the h5p hub OK.

2.- Using H5P mod_hvp Additional plugin (the black icon) I cannot retrieve H5P contents from the H5P hub, but of course I can still upload H5P contents created elswhere, which I use as a workaround, but this is still annoying and unexplainable.

Anyone else having this problem?


Average of ratings: Useful (1)
Picture of Développeurs Picture of Développeurs de plugins Picture of Testeurs Picture of Traducteurs

Je ne comprends pas ce que tu entends par "caractères HTML un peu particuliers". Le questionnaire que tu avais posté ici fonctionne sans problèmes sur mon site de tests, et je n'y vois rien de "particulier".

Moodle in English -> H5P -> H5P contents management feature request

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

The H5P mod_hvp Additional plugin (the black icon) features a useful column displaying (to the admin) the number of H5P instances existing on a Moodle site for each library (screenshot #1).

The h5pactivity core Moodle plugin should provide the same feature (screenshot #2).

If you agree this would be a useful feature, please vote for MDL-77151

Joseph

Screenshot #1
screenshot #1

Screenshot #2

Average of ratings: Useful (1)