h5p editor drupal
Hi I am using the opigno drupal distribution and trying to use the h5p editor. I can upload and display h5ps but if I select create in the create interactive content page I get this error:
Notice: Undefined offset: 0 in h5peditor_get_library_property() (line 333 of C:\xampp\htdocs\opigno\sites\all\modules\h5p\modules\h5peditor\h5peditor.module).
Notice: Undefined offset: 0 in h5peditor_get_library_property() (line 334 of C:\xampp\htdocs\opigno\sites\all\modules\h5p\modules\h5peditor\h5peditor.module).
Notice: Undefined offset: 0 in h5peditor_get_library_property() (line 335 of C:\xampp\htdocs\opigno\sites\all\modules\h5p\modules\h5peditor\h5peditor.module).
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'main_library_id' at row 1: INSERT INTO {h5p_nodes} (content_id, nid, json_content, embed_type, main_library_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 27 [:db_insert_placeholder_1] => 24 [:db_insert_placeholder_2] => {} [:db_insert_placeholder_3] => div [:db_insert_placeholder_4] => ) in h5p_insert() (line 164 of C:\xampp\htdocs\opigno\sites\all\modules\h5p\h5p.module).
Any ideas? It is running on windows 7 with xampp
bevangg
Wed, 05/14/2014 - 10:23
Permalink
solved
I have installed a different distribution and it works. However there is one problem, I tried to upload the Iframe embed h5p and it came up with this error:
File "phet.html" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff otf webm mp4 ogg mp3 txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf.
The uploaded file was not a valid H5P package
H5P Group
Wed, 05/14/2014 - 22:10
Permalink
re
You need to allow html files in the H5P settings. There is a security risk involved here. If only trusted people are allowed to upload H5P files there is no problem. If you can't trust everybody who are allowed to upload you shouldn't allow html files. We will add a new permission for bypassing the extension check in upcoming versions.