H5P moodle problem
Hello,
I have a problem with my H5P plugin, installed in moodle. The problem is that it does not load the coure presentation. It shows '[field:group:coursepresentation:presentation]'
After opening an H5P activity it shows 'Exception - Class 'finfo' not found'
and the error show on the console is:
'Uncaught ReferenceError: H5PIntegration is not defined
at Object.H5P.t (h5p.js?ver=2018012200:882)
at HTMLDocument.<anonymous> (h5p.js?ver=2018012200:2039)
at c (jquery.js?ver=2018012200:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=2018012200:2)
at Function.ready (jquery.js?ver=2018012200:2)
at HTMLDocument.H (jquery.js?ver=2018012200:2) '
How can I solve this problem?
Thank you.
BV52
Tue, 02/13/2018 - 13:40
Permalink
Hi utest94,In order to give
Hi utest94,
In order to give your bug report the best chance of getting answered, please include the following information:
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
utest94
Tue, 02/13/2018 - 14:41
Permalink
H5P course presentation problem in moodle
Hello,
I have installed H5P plugin version 1.7, on my moodle account with version 3.3.1. When I create a H5P activity (course presentation) on a course, there is appeared a problem shown below.
[field:group:coursepresentation:presentation]
When I save and display this activity, it shows this error on the screen
and this one on the console
Uncaught ReferenceError: H5PIntegration is not defined
at Object.H5P.t (h5p.js?ver=2018012200:882)
at HTMLDocument.<anonymous> (h5p.js?ver=2018012200:2039)
at c (jquery.js?ver=2018012200:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=2018012200:2)
at Function.ready (jquery.js?ver=2018012200:2)
at HTMLDocument.H (jquery.js?ver=2018012200:2)
How can I solve this problem, pls?
Thanks
BV52
Tue, 02/13/2018 - 15:42
Permalink
Download and Upload
Hi utest94,
Can you try downloading and uploading to Moodle this test content and see if this will resolve the issue.
-BV52
utest94
Tue, 02/13/2018 - 15:59
Permalink
Hi,I downloaded and tried to
Hi,
I downloaded and tried to upload the content you just gave above, but the loading is too slow, and after loading it shows just a red line (like an error) without text inside.
otacke
Wed, 02/14/2018 - 09:11
Permalink
Hi utest94!The error you're
Hi utest94!
The error you're describing points to finfo (fileinfo), which is not a part of H5P or moodle, but an extension of PHP on the server that you're using. As far as I know, it should be installed by default nowadays, but maybe you or your system administrator could check on that.
utest94
Wed, 02/14/2018 - 15:46
Permalink
Hi,I just installed the
Hi,
I just installed the fileinfo php extension, and the error about the finfo has gone, but now it shows another problem if I view a course presentation on H5P. It shows 'Exception - Call to a member function get_content() on boolean' kind of error.
and If I want to create a course presentation, I can't.
otacke
Wed, 02/14/2018 - 21:02
Permalink
Hi utest94!This is also an
Hi utest94!
This is also an error message from PHP, and as far as I can see, get_content() belongs to moodle's File API. Have you already checked the PHP logfile for more information?
utest94
Thu, 02/15/2018 - 10:09
Permalink
On debugger mode - moodle
on my console it shows:
h5p.js?ver=2018012200:882 Uncaught ReferenceError: H5PIntegration is not defined
at Object.H5P.t (h5p.js?ver=2018012200:882)
at HTMLDocument.<anonymous> (h5p.js?ver=2018012200:2039)
at c (jquery.js?ver=2018012200:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=2018012200:2)
at Function.ready (jquery.js?ver=2018012200:2)
at HTMLDocument.H (jquery.js?ver=2018012200:2)
If I turn on the debugger mode on moodle, than these errors are shown:
Debug info:Error code: generalexceptionmessage×Stack trace:
thomasmars
Fri, 02/16/2018 - 10:58
Permalink
Hi,From your error message it
Hi,
From your error message it looks like H5P think you have a library file, but when it looks for the file it finds that it doesn't exist and throws an error. I think this has happened because an incosistency between your file system and your database when you tried to install content types/libraries without the finfo php extension installed, i.e. the libraries were only installed in your database, but the files were never transferred to your moodledata storage.
If you don't have a lot of content, then I think the simplest solution to this problem is to try to reinstall the H5P plugin (make sure that all H5P database tables are cleared out), and then install the content types through the content type hub (editor). Please let us know how this progresses along.
utest94
Fri, 02/16/2018 - 14:16
Permalink
Hi,thanks for your
Hi,
thanks for your explanation. Is there any way to solve this, without removing and reinstalling H5P plugin? Anything that I can add to moodledata?
icc
Mon, 02/19/2018 - 09:48
Permalink
Hi,What you can do is try to
Hi,
What you can do is try to reinstall the content types manually. To do this you'll have to add the following to your config.php:
Also, to catch any error while doing so, it's useful to add the following as well:
But remember to remove all of these lines when you're done so they don't cause problems for you in the future.
Once you've added the lines go to the Libraries Managment page /mod/hvp/library_list.php where you'll see an upload form. Here you can upload the broken content types to fix them.
To find the file you need to upload go to the Examples & Downloads page, select e.g. Course Presentation and the use the little download button in the lower left corner of content. Once the file is downloaded, upload it to your site via the form.
Let me know how it works out.
utest94
Mon, 02/19/2018 - 10:10
Permalink
Thank you
Hi,
Thank you very much. It worked! :D
icc
Mon, 02/19/2018 - 10:24
Permalink
That is great to hear, makes
That is great to hear, makes me happy!
icc
Fri, 02/16/2018 - 08:58
Permalink
Which PHP version are you
Which PHP version are you running? I see that others have had similar issues when using PHP 7.1.
utest94
Fri, 02/16/2018 - 09:29
Permalink
Hi icc,I am using PHP 7.0.
Hi icc,
I am using PHP 7.0. Which might be the problem?
José Manuel R.
Wed, 02/15/2023 - 12:43
Permalink
Similar error and does not load the content
In my case, in the google chrome debugger I get the similar message:
h5p.js?ver=-1:997 Uncaught ReferenceError: H5PIntegration is not defined
at H5P.t (h5p.js?ver=-1:997:3)
at HTMLDocument.<anonymous> (h5p.js?ver=-1:2717:18)
at u (jquery.js?ver=-1:2:27579)
at Object.fireWith [as resolveWith] (jquery.js?ver=-1:2:28337)
at Function.ready (jquery.js?ver=-1:2:30124)
at HTMLDocument._ (jquery.js?ver=-1:2:27307)
And this is displayed on the screen:
Trazado de la pila (stack):
Is there a way to know if there is a library that is giving incompatibility?
Thanks