h5p-cli icon indicating copy to clipboard operation
h5p-cli copied to clipboard

Loading semantics, please wait...

Open woldtwerk opened this issue 5 years ago • 7 comments

Fill the blanks is running just fine. I can modify settings and content in the .json and js files. I can't get the editor working though. All I get is "Loading semantics, please wait..." Am I missing something?

woldtwerk avatar Jun 18 '19 09:06 woldtwerk

Try opening your browser console(Ctrl+Shift+J in Chrome/Firefox) and look for any errors.

icc avatar Jun 18 '19 09:06 icc

Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse () at Object.success (h5peditor.js:72) at c (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at k (jquery.js:4) at XMLHttpRequest.r (jquery.js:4)

I got some undefined strings there. Those can't be parsed. E.g. libraryData.language

woldtwerk avatar Jun 18 '19 09:06 woldtwerk

There appears to be an error in one of the translation files. What language are you using?

icc avatar Jun 18 '19 10:06 icc

Well, the interface is in english. I didn't set it to english anywhere though. I did not see or got asked to set any language.

I tried adding: "language": "und" to the server.json file, but it had no impact

woldtwerk avatar Jun 18 '19 10:06 woldtwerk

Hi, since (in that case Blanks) has a minor version 12 which has two digits. That leads to h5peditor.js not handling the libraryFromString correctly, because the regExp is demanding a single digit as minor version.

JuStTheDev avatar Jul 10 '19 07:07 JuStTheDev

Hi Frode, @icc as vou can see, I made a PR for handling multi-digit-versioned Libraries correctly.

JuStTheDev avatar Jul 10 '19 07:07 JuStTheDev

The fix by @JulianSSS works for me.

woldtwerk avatar Jul 10 '19 09:07 woldtwerk

h5p-cli core functionality has been rewritten. Closing this since it is no longer relevant.

devland avatar Aug 05 '24 15:08 devland