Hi there,

Thanks for creating and maintaining this module, it's great! I am using the 7.x-2.1 version of Outline Designer. I am not sure if I am posting to the correct issues queue -- let me know if this belongs with the H5P issues.

It seems like the H5P content type "Interactive content" can't be added to a book using Outline Designer.

In the Outline Designer "Add content" popup, I am able to add a title and select H5P "Interactive content" as the type. When I click the "Add content" button, the pop up disappears as usual, but no content is added and there is no automatic refresh of the book outline page.

If I try to add content again, the OD Add content pop-up window comes up containing the title I had typed before, but with the default book page content type selected. If I re-select the Interactive content type, it continues to not save.

I am able to add the Interactive content type via the Drupal Add content menu, and manually select the book, book parent, etc. Once "Interactive content" has been added, I am able to work with it (weight, edits) via Outline Designer.

Can anyone help me out?

Comments

btopro’s picture

Is that content type allowed in outline designer/ the content/book/settings area? Check there first.

solesum’s picture

Yes, it definitely is, otherwise it would not show up in the Add content pop-up....

btopro’s picture

hmm.. turn on chrome inspector and see if maybe it's failing JS validation? OD is for rapid outlining / stubbing so there might be something in H5P that gets ticked off when a file upload isn't present. Outline designer (intentionally) ignored required fields for initial creation which could create a problem for complex projects like H5P (just a guess)

solesum’s picture

Thanks very much for your responses. With your advice I was able to locate the error. It sounds like the issue is (as you suggested) to do with ignored fields that are required by H5P. Guess I am out of luck!

"PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'json_content' cannot be null: 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] => 242 [:db_insert_placeholder_1] => 242 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => div [:db_insert_placeholder_4] => ) in H5PDrupal->insertContent() (line 341 of /Users/***/Projects/www/***/sites/all/modules/h5p/h5p.classes.inc)."

Thanks again!

solesum’s picture

Status: Active » Closed (works as designed)