[07:34] Tiki|bot Recent Bug: - My first post of the day in the Tiki forum is never saved - http://dev.tiki.org/item7003-My-first-post-of-the-day-in-the-Tiki-forum-is-never-saved [08:00] fabricius joined #tikiwiki [08:46] jonnyb joined #tikiwiki [09:03] josephzitt joined #tikiwiki [10:22] luciash jonnyb: hi, good morning! [10:24] jonnyb polom luciash [10:26] luciash jonnyb: was trying to debug H5P yesterday and found out some differences in the old .h5p and current .h5p files [10:29] luciash jonnyb: for example in the simple accordion, currently there is "language":"und" and "license":"U" crap when I download the file from their examples on the site -- is it rendered? by my browser wrongly? old h5p accordion file I had stored somewhere still works nicely when I upload it to Tiki 17/18/19 but these freshly downloaded ones yell just errors on me :( [10:30] jonnyb sry, later [10:31] luciash so far I noticed in the old one there was "language":"en" and no "license" entry in the h5p.json file included in the h5p zip [10:32] luciash but it still doesn't work if I edit and repackage and reupload the file -- it is not giving the errors but is not recognized as h5p lib file anyway [11:25] jonnyb joined #tikiwiki [11:25] jonnyb repolom [11:27] jonnyb sorry luciash, yes, it looks like H5P have broken backwards compatibility - i'll try and upgrade our version in 19.x but as that was slightly broken before i'm not too hopeful it'll fix everything... [12:27] luciash jonnyb: thank you! what version do we use? and is there any way to get the old format h5p content files still omehow? [12:27] luciash s/omehow [12:27] jonnyb we're on 1.17 and the latest is 1.19 (and 1.18 for the editor) [12:28] jonnyb No idea about older files, sorry [12:50] jonnyb ok, i just committed updates for the h5p libraries in 19.x luciash, can you see if that helps with the newer files? Seems to work for me [13:00] luciash jonnyb: yay, going to update and test right away! [13:00] jonnyb thanks luciash [13:07] luciash re-uploaded the agamotto, it appears in the create h5p dropdown now, yay, but... [13:07] luciash it seems to be stuck on "Loading, please wait..." when I choose it [13:07] luciash will try another h5p content type [13:10] * luciash trying chart [13:11] luciash this look promising: "Success: Added 2 new H5P libraries." [13:12] luciash darn, again "Loading, please wait..." :( [13:13] luciash console gives uncaught syntax error [13:13] luciash browser conole [13:13] luciash jonnyb: "Uncaught SyntaxError: Invalid regular expression flags at eval () at Object.ns.libraryRequested (h5peditor.js?ver=19.1svn:78)" [13:13] luciash at Object.success (h5peditor.js?ver=19.1svn:137) [13:13] luciash at c (jquery.js?ver=19.1svn:2) [13:13] luciash at Object.fireWith [as resolveWith] (jquery.js?ver=19.1svn:2) [13:13] luciash at k (jquery.js?ver=19.1svn:4) [13:13] luciash at XMLHttpRequest.r (jquery.js?ver=19.1svn:4) [13:14] jonnyb i've never managed to work out how to debug their code, it just works or it doesn't... let me try some more files... [13:15] luciash the old format accordion still works though (just for your information) without the JS error [13:16] luciash jonnyb: thanks, try some which you did not uploaded yet to your file gal [13:16] jonnyb agamoto seems ok for me [13:16] jonnyb looks like it hasn't changed - file name still agamotto-80158.h5p [13:17] jonnyb chart's ok too (doesn't do much though) [13:18] ricks99 joined #tikiwiki [13:19] luciash jonnyb: display works, yes, but create new content? [13:19] jonnyb coo, even the speech recognition french lesson one works 8) [13:19] jonnyb Ah no, editing is totally broken [13:19] jonnyb has been since tiki 16 i think :( [13:19] luciash old format create or edit works still [13:20] luciash but these new ones give the JS error I pasted when trying to create [13:20] jonnyb yes, they changed a load of stuff but couldn't tell me what, i spent hours trying to revese engineer it but failed [13:21] luciash let me reindex/clear cache/etc. again [13:21] jonnyb I was focussing on getting uploading and viewing working for Rick mainly [13:25] luciash is it theirs? the error. or something wrong in our code? [13:25] luciash fyi: this was in Chrome console [13:26] luciash I will test in firefox now [13:28] jonnyb the errors are in their code, but probably caused by our code that initialises the editor which was based on what worked a few (minor) versions ago, think it was 1.15 or 1.16 we started on [13:28] jonnyb i even read all of their commits to see if i could spot what they had changed but couldn't [13:29] luciash ah, in Firefox it is a bit different... the "Loading" is not tuck and gets away but in the FF console there is slightly different error message [13:29] luciash s/tuck/stuck [13:30] luciash TypeError: metadataSemantics is undefined[Learn More] h5peditor-metadata.js:339:21 [13:30] luciash findField [13:30] luciash https://demo.luciash.eu/tiki19x/vendor_bundled/vendor/h5p/h5p-editor/scripts/h5peditor-metadata.js:339:21 [13:30] luciash MetadataForm [13:30] luciash https://demo.luciash.eu/tiki19x/vendor_bundled/vendor/h5p/h5p-editor/scripts/h5peditor-metadata.js:27:7 [13:30] luciash ns.Form.prototype.processSemantics [13:30] luciash https://demo.luciash.eu/tiki19x/vendor_bundled/vendor/h5p/h5p-editor/scripts/h5peditor-form.js:91:25 [13:30] luciash ns.LibrarySelector.prototype.loadSemantics/< [13:30] luciash https://demo.luciash.eu/tiki19x/vendor_bundled/vendor/h5p/h5p-editor/scripts/h5peditor-library-selector.js:330:7 [13:30] luciash success/< [13:30] luciash https://demo.luciash.eu/tiki19x/vendor_bundled/vendor/h5p/h5p-editor/scripts/h5peditor.js:181:13 [13:30] luciash ns.libraryRequested/