Unable to install activity and unable to upload .h5p content from editor
Hello
I have been pretty excited about getting HP5 running on our moodle site, however I have run into some issues.
Using:
Moodle 3.4.1+ (Build: 20180208)
PHP Version 7.2.3
Apache 2.4
Windows 10
Chrome
There are 2 instances of the issue. Both result in me not being able to upload or be able to use H5P.
The first happens when i try to pull in an existing .hvp file to upload.
Apache error log:
[Mon Jul 16 09:08:44.347128 2018] [php7:notice] [pid 2888:tid 1180] [client 192.168.128.193:61078] Default exception handler: Exception - Class 'finfo' not found Debug: \r\nError code: generalexceptionmessage\n* line 2169 of \\lib\\filestorage\\file_storage.php: Error thrown\n* line 2155 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype_from_file()\n* line 1313 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype()\n* line 522 of \\mod\\hvp\\classes\\file_storage.php: call to file_storage->create_file_from_pathname()\n* line 64 of \\mod\\hvp\\classes\\file_storage.php: call to mod_hvp\\file_storage::readFileTree()\n* line 1412 of \\mod\\hvp\\library\\h5p.classes.php: call to mod_hvp\\file_storage->saveLibrary()\n* line 1328 of \\mod\\hvp\\library\\h5p.classes.php: call to H5PStorage->saveLibraries()\n* line 176 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PStorage->savePackage()\n* line 117 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PEditorAjax->libraryUpload()\n* line 304 of \\mod\\hvp\\ajax.php: call to H5PEditorAjax->action()\n, referer: http://192.168.23.17/moodle/course/modedit.php?add=hvp&type=&course=6&se...
There are no errors in the chrome console.
The second is when i try to install/download an activity to create. I click on the activity "get" button in the editor, then the page refreshes and there is no more editor. Picture attached
Here is the Apache error log
[Mon Jul 16 08:01:56.025070 2018] [php7:notice] [pid 2888:tid 1176] [client 192.168.128.193:55245] Default exception handler: Exception - Class 'finfo' not found Debug: \r\nError code: generalexceptionmessage\n* line 2169 of \\lib\\filestorage\\file_storage.php: Error thrown\n* line 2155 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype_from_file()\n* line 1313 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype()\n* line 522 of \\mod\\hvp\\classes\\file_storage.php: call to file_storage->create_file_from_pathname()\n* line 64 of \\mod\\hvp\\classes\\file_storage.php: call to mod_hvp\\file_storage::readFileTree()\n* line 1412 of \\mod\\hvp\\library\\h5p.classes.php: call to mod_hvp\\file_storage->saveLibrary()\n* line 1328 of \\mod\\hvp\\library\\h5p.classes.php: call to H5PStorage->saveLibraries()\n* line 255 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PStorage->savePackage()\n* line 106 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PEditorAjax->libraryInstall()\n* line 286 of \\mod\\hvp\\ajax.php: call to H5PEditorAjax->action()\n, referer: http://192.168.23.17/moodle/course/modedit.php?sr=0&add=hvp§ion=6&co...
Chrome Editor Log:
h5p-hub-client.js?ver=2018053100:25 TypeError: Cannot read property 'libraries' of undefined at t.<anonymous> (h5p-hub-client.js?ver=2018053100:40) at wt (h5p-hub-client.js?ver=2018053100:25) at Ct (h5p-hub-client.js?ver=2018053100:25) at updateClassInstance (h5p-hub-client.js?ver=2018053100:25) at beginWork (h5p-hub-client.js?ver=2018053100:25) at o (h5p-hub-client.js?ver=2018053100:25) at i (h5p-hub-client.js?ver=2018053100:25) at l (h5p-hub-client.js?ver=2018053100:25) at w (h5p-hub-client.js?ver=2018053100:25) at g (h5p-hub-client.js?ver=2018053100:25) [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:33 (anonymous)@h5p-hub-client.js?ver=2018053100:40 Promise.then (async) [email protected]?ver=2018053100:40 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:33 [email protected]?ver=2018053100:33 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:33 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25 [email protected]?ver=2018053100:25
Any help with this would be appreciated!
Thanks!
[Mon Jul 16 08:01:56.025070 2018] [php7:notice] [pid 2888:tid 1176] [client 192.168.128.193:55245] Default exception handler: Exception - Class 'finfo' not found Debug: \r\nError code: generalexceptionmessage\n* line 2169 of \\lib\\filestorage\\file_storage.php: Error thrown\n* line 2155 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype_from_file()\n* line 1313 of \\lib\\filestorage\\file_storage.php: call to file_storage::mimetype()\n* line 522 of \\mod\\hvp\\classes\\file_storage.php: call to file_storage->create_file_from_pathname()\n* line 64 of \\mod\\hvp\\classes\\file_storage.php: call to mod_hvp\\file_storage::readFileTree()\n* line 1412 of \\mod\\hvp\\library\\h5p.classes.php: call to mod_hvp\\file_storage->saveLibrary()\n* line 1328 of \\mod\\hvp\\library\\h5p.classes.php: call to H5PStorage->saveLibraries()\n* line 255 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PStorage->savePackage()\n* line 106 of \\mod\\hvp\\editor\\h5peditor-ajax.class.php: call to H5PEditorAjax->libraryInstall()\n* line 286 of \\mod\\hvp\\ajax.php: call to H5PEditorAjax->action()\n, referer: http://192.168.23.17/moodle/course/modedit.php?sr=0&add=hvp§ion=6&co...
icc
Wed, 07/18/2018 - 11:11
Permalink
Hi,You need to enable the
Hi,
You need to enable the fileinfo extension for PHP. You do this by editing your php.ini and uncommenting the following line:
Next, restart Apache.
jrbiaini
Wed, 08/01/2018 - 14:00
Permalink
ITS ALIVE!!!!!Thanks we are
ITS ALIVE!!!!!
Thanks we are up and running!