Moodle H5P.org not viewable

Google chrome console shows the following:

/pluginfile.php/1/mod_hvp/cachedassets/1f1c1d33245121e168bf2ae602a2b576688b729b.css:1 Failed to load resource: the server responded with a status of 404 ()
1f1c1d33245121e168bf2ae602a2b576688b729b.js:1 Failed to load resource: the server responded with a status of 404 ()
h5p.js?ver=2018053100:861 Unable to find constructor for: H5P.ImageHotspots 1.6
H5P.error @ h5p.js?ver=2018053100:861
h5p.js?ver=2018053100:981 Uncaught TypeError: Cannot read property 'getCopyrights' of undefined
    at Object.H5P.getCopyrights (h5p.js?ver=2018053100:981)
    at HTMLDivElement.<anonymous> (h5p.js?ver=2018053100:166)
    at Function.each (jquery.js?ver=2018053100:2)
    at init.each (jquery.js?ver=2018053100:2)
    at Object.H5P.init (h5p.js?ver=2018053100:92)
    at HTMLDocument.<anonymous> (h5p.js?ver=2018053100:2136)
    at c (jquery.js?ver=2018053100:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=2018053100:2)
    at Function.ready (jquery.js?ver=2018053100:2)
    at HTMLDocument.H (jquery.js?ver=2018053100:2)
1f1c1d33245121e168bf2ae602a2b576688b729b.css:1 Failed to load resource: the server responded with a status of 404 ()

 

Moodle 3.5.

also images do not appear to import. Works fine on H5P.org

Content types: 
BV52's picture

Hi MANICX100,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

icc's picture

Sounds like there may have been an issue when uploading the content. Try adding the following to your config.php file and then upload the file again:

@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
$CFG->mod_hvp_aggregate_assets = '0';

Failed to load resource: the server responded with a status of 404 ()
/pluginfile.php/1/mod_hvp/libraries/H5P.Text-1.1/styles/text.css?ver=1.1.8:1 Failed to load resource: the server responded with a status of 404 ()
/pluginfile.php/1/mod_hvp/libraries/FontAwesome-4.5/h5p-font-awesome.min.css?ver=4.5.4:1 Failed to load resource: the server responded with a status of 404 ()
/pluginfile.php/1/mod_hvp/libraries/H5P.ImageHotspots-1.6/styles/image-hotspots.css?ver=1.6.3:1 Failed to load resource: the server responded with a status of 404 ()
popup.js:1 Failed to load resource: the server responded with a status of 404 ()
image-hotspots.js:1 Failed to load resource: the server responded with a status of 404 ()
text.js:1 Failed to load resource: the server responded with a status of 404 ()
hotspot.js:1 Failed to load resource: the server responded with a status of 404 ()
transition.js:1 Failed to load resource: the server responded with a status of 404 ()
image-hotspots.js:1 Failed to load resource: the server responded with a status of 404 ()
hotspot.js:1 Failed to load resource: the server responded with a status of 404 ()
popup.js:1 Failed to load resource: the server responded with a status of 404 ()
h5p.js?ver=2018082200:861 Unable to find constructor for: H5P.ImageHotspots 1.6
H5P.error @ h5p.js?ver=2018082200:861
h5p.js?ver=2018082200:1773 Uncaught TypeError: Cannot read property 'on' of undefined
    at Object.H5P.on (h5p.js?ver=2018082200:1773)
    at HTMLDivElement.<anonymous> (h5p.js?ver=2018082200:205)
    at Function.each (jquery.js?ver=2018082200:2)
    at init.each (jquery.js?ver=2018082200:2)
    at Object.H5P.init (h5p.js?ver=2018082200:92)
    at HTMLDocument.<anonymous> (h5p.js?ver=2018082200:2136)
    at c (jquery.js?ver=2018082200:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=2018082200:2)
    at Function.ready (jquery.js?ver=2018082200:2)
    at HTMLDocument.H (jquery.js?ver=2018082200:2)
text.css:1 Failed to load resource: the server responded with a status of 404 ()
h5p-font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404 ()
image-hotspots.css:1 Failed to load resource: the server responded with a status of 404 ()
icc's picture

There appear to be important files missing. You should try to reinstall the plugin.

Reinstalled multiple times. No change.
Perhaps, it is a folder permission error on my server?

icc's picture

Are you downloading the plugin from Moodle.org or GitHub? 

It may also be a permission issue as well. 
Keep an eye on the web server's error_log file.

Moodle.org