we’re currently stuck with an H5P issue. Every time we try to insert an existing H5P file, we’re

we’re currently stuck with an H5P issue appreciate your help. Every time we try to insert an existing H5P file, we’re getting an error. Oddly enough, when it’s used as an activity, the H5P works perfectly.

 

Any pointers or advice would be greatly appreciated!

Exception - Call to a member function get_content() on bool

More information about this error

Debug info:
Error code: generalexceptionmessage×Dismiss this notificationStack trace:
  • line 718 of /h5p/classes/file_storage.php: Error thrown
  • line 243 of /h5p/classes/file_storage.php: call to core_h5p\file_storage->concatenate_files()
  • line 2513 of /h5p/h5plib/v124/joubel/core/h5p.classes.php: call to core_h5p\file_storage->cacheAssets()
  • line 452 of /h5p/classes/player.php: call to Moodle\H5PCore->getDependenciesFiles()
  • line 382 of /h5p/classes/player.php: call to core_h5p\player->get_dependency_files()
  • line 237 of /h5p/classes/player.php: call to core_h5p\player->get_assets()
  • line 66 of /h5p/embed.php: call to core_h5p\player->add_assets_to_page()
    ReplyForwardAdd reaction
Content types: 
otacke's picture

Hi!

This error stems from moodle's custom H5P integration in moodle core. That integration was not created by the H5P core team, so your best shot probably is to reach out to moodleHQ first.

Best,
Oliver

papi Jo's picture

Hi

What do you mean exactly by "we try to insert an existing H5P file" and  "when it’s used as an activity, ..."?

Most importantly, are you using the Moodle core h5p activity (in the Content Bank and the blue icon) OR the H5P external plugin (the black icon)?

And, as Oliver says (and we keep repeating on this forum!) any question related to using H5P in Moodle should be posted to the relevant Moodle forum here: https://moodle.org/mod/forum/view.php?id=8603

Best, papi Jo

PS.- I have uploaded your attached drag and drop H5P content to my Moodle site's Content bank without any problem.

 

This happens when i use the insert option that shows in the editor. I am attaching the picture here. 

Attachments: 

I am able to upload to the content bank. I am trying to attach the picture here..but unable. It is there in my original post. It is the the insert H5P option that shows up in the editor. I am able to insert it but when I "Save and Preview" it showing the error message. 

for some reason I am not able to reply to this conversation

papi Jo's picture

You write " I am able to insert it but when I "Save and Preview" it showing the error message." Please describe exactly what you do to insert an H5P content after clicking on that button in the editor.

And again you would stand a better chance to get relevant feedback if you posted your question to the Moodle H5P forum (link given in my previous post).

I use the editor that comes with Moodle (I have tried Atto and TinyMCE) The H5P. Here is the link to the images. 

https://drive.google.com/drive/folders/1CaXWwUM_gSRy6UseQb9DZ8NBlkhT_0hS...