Course presentation content displayed as [field:group:coursepresentation:presentation]

I upgraded h5p content to the latest version last night.

Some content types now dispay as - [field:group:coursepresentation:presentation] and are not editable.

I looked in h5p ibraries and found some had not updated.  Updating caused this error.

 

I have since updated all h5p installed h5p content types from the editor which allowed me to update the content libraries completely.

However still Course Presentation displays as below

 

 

Just to add, the error occured before I did the moodle and h5p updates.

BV52's picture

Hi geckonet,

Can you try downloading and uplaoding this test content. If this doesn't work please check the following:

  1. Any browser console errors
  2. Any PHP errors

-BV

 

After saving I got this error page.

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

More information about this error

×Debug info: 
Error code: generalexceptionmessage×Stack trace: 
  • 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 188 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()

 

In /h5p/ erro_log I have the following x 3.

[10-Feb-2020 04:10:56 America/New_York] PHP Notice: Capability "moodle/community:add" was not found! This has to be fixed in code.<ul style="text-align: left" data-rel="backtrace"><li>line 453 of /lib/accesslib.php: call to debugging()</li><li>line 34 of /blocks/community/block_community.php: call to has_capability()</li><li>line 228 of /lib/blocklib.php: call to block_community->user_can_addto()</li><li>line 4034 of /lib/navigationlib.php: call to block_manager->get_addable_blocks()</li><li>line 781 of /lib/pagelib.php: call to flat_navigation->initialise()</li><li>line 830 of /lib/pagelib.php: call to moodle_page->magic_get_flatnav()</li><li>line 56 of /theme/boost/layout/columns2.php: call to moodle_page->__get()</li><li>line 1374 of /lib/outputrenderers.php: call to include()</li><li>line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()</li><li>line 1941 of /lib/setuplib.php: call to core_renderer->header()</li><li>line 41 of /h5p/libraries.php: call to bootstrap_renderer->__call()</li></ul> in /myurl/LMS/lib/weblib.php on line 3241

I now get a continuous "Now loading" message but it never completes.

We are having exactly the same problem as geckonet. One one the admins updated the Course Presentation, it seemed to fail during that process however we have not been able to recover from that or determine how to fix this component. 
We have downloaded the test course presentation and uploaded to a test course. The mesage was: Course Presentation was successfully uploaded! however there are still portions of this page not loading:

  • [field:group:coursepresentation:presentation]
  • [field:boolean:disposableBoolean:activeSurface]
  • [field:boolean:showWhen:summarySlideSolutionButton]
  • [field:boolean:showWhen:summarySlideRetryButton]
  • [field:group:showWhen:social]

Screenshot included.

Errors in the browser loading an H5P page:

Uncaught TypeError: Cannot read property 'prototype' of undefined
pluginfile.php/1/mod_hvp/cachedassets/713d00c8a644fb06a7bb48f6a41504b75e8aeb68.js

    at 713d00c8a644fb06a7bb48f6a41504b75e8aeb68.js:316

 

    at 713d00c8a644fb06a7bb48f6a41504b75e8aeb68.js:1100

Unable to find constructor for: H5P.CoursePresentation 1.22
mod/hvp/library/js/h5p.js?ver=2020080400

Uncaught TypeError: Cannot read property 'getCopyrights' of undefined
mod/hvp/library/js/jquery.js?ver=2020080400

    at Object.H5P.getCopyrights (h5p.js?ver=2020080400:1115)

    at HTMLDivElement.<anonymous> (h5p.js?ver=2020080400:174)

    at Function.each (jquery.js?ver=2020080400:2)

    at S.fn.init.each (jquery.js?ver=2020080400:2)

    at Object.H5P.init (h5p.js?ver=2020080400:93)

    at HTMLDocument.<anonymous> (h5p.js?ver=2020080400:2821)

    at e (jquery.js?ver=2020080400:2)

    at t (jquery.js?ver=2020080400:2)

If you found a solution can you share it with us? 

Thank you.

Hi there,

is there any soltuion out there for this issue?

I am facing the same error. Would be great if anyone could share the fix if available.