Timeline Exception: Call to a member function get_content() on boolean

Hey there,

I tried to add my first H5P timeline to a course in Moodle. I set up two dates, images, captions, etc. H5P saved it w/o any error message and I can see the activity in my course. When I (or sb else) try to open it I get 'Exception - Call to a member function get_content() on boolean' error message. I deleted and re-created the activity with no luck.

Additionally on the page with the Exception I also have a js console error msg: ReferenceError: H5PIntegration is not defined @ h5p.js:987:7.

We have the latest Moodle (3.7.2+?) on Debian 3.16.39, Apache 2.4.25, php 7.1.30, PostgreSQL 9.6.13, with fresh H5P modules. All the other H5P modules (a lot) we use work perfectly.

Summary: 
Exception error when opening Timelime content type

When I re-open the timeline in the editor, everything looks fine: I can edit and save but I can't save and review changes - > Exception...

Error code: generalexceptionmessage

Hope it helps.

  • line 258 of /mod/hvp/classes/file_storage.php: Error thrown
  • line 2446 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\file_storage->cacheAssets()
  • line 192 of /mod/hvp/classes/view_assets.php: call to H5PCore->getDependenciesFiles()
  • line 91 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()

Hey guys,

It would be great to use this feature. Is there any chance to get a correction for this error?

BV52's picture

Hi hellsing,

Would you mind providing sample content. I tried reproducing the issue on a similar setup but I am unable to do so.

-BV52

Sorry but I can't. We are on intranet. Also I can't open the content for a view so I can't export it into an h5p file.

Is it possible to 'reset' a H5P module? When I installed H5P there were some modules hat had to be downloaded by clicking a 'Get it' button. Can I somehow set a module to that state?

It's so strange all the other modules work perfectly.

BV52's picture

Hi hellsing,

I'm not really sure if it is possible in Moodle, but it sounds like a viable solution. I hope that someone else in the community has some suggestion.

-BV52

ola-and's picture

Hello,

We have the same problem while creating an essay activity on Moodle version 3.9.7+. The following message shows up just after clicking on "Save" :

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

Plus d'informations sur cette erreur

×Info de débogage 

Error code: generalexceptionmessage

×Trace de la pile 

line 258 of /mod/hvp/classes/file_storage.php: Error thrown

line 2508 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()

Has anyone found a solution ?

Thanks in advance ! Kind regards,

Olga