Unable to find constructor for H5P.iframeEmbed
Submitted by lesterstoffels on Tue, 11/22/2016 - 17:09
Forums:
Hi
Please help. I keep on getting this errors:
h5p.js?ver=2016110100:871 Unable to find constructor for: H5P.IFrameEmbed 1.0
and together with that error this following error:
h5p.js?ver=2016110100:984 Uncaught TypeError: Cannot read property 'getCopyrights' of undefined(…)
These errors causes the data that i've embedded not to show. It only shows blank. see attachment.
icc
Wed, 11/23/2016 - 09:41
Permalink
Which version of Moodle are
Which version of Moodle are you running?
This is strange, it seems like your Moodle site is having some issues creating the aggregated assets(combining JavaScripts/cache). Are there any messages in your web server's error_log? There could be some clues there.
You can disable the aggregation by adding the following to your config.php:
Do you still get the same error's in your browser's console?
Note that this isn't a recommended production setting as it will increase the load time.
lesterstoffels
Wed, 11/23/2016 - 09:49
Permalink
version of moodle
Im on 3.1.2+
The errors on server log is "mod fcgi errors".
Thanks
icc
Wed, 11/23/2016 - 09:53
Permalink
Ah, yes then there's
Ah, yes then there's something wrong with PHP/the plugin. I guess you'll have to enable the error messages for us to know what the issue is. You can do this by adding the following to config.php and reloading the page, or re-saving the H5P content:
lesterstoffels
Wed, 11/23/2016 - 10:04
Permalink
I've added that script to the
I've added that script to the config file. Where will the error messages appear.
icc
Wed, 11/23/2016 - 10:21
Permalink
The should appear both in the
The should appear both in the browser and the web server's log when saving H5P content. I would check both places to be sure.