h5p / h5p-cli

Command Line Interface
MIT License
64 stars 33 forks source link

Loading semantics, please wait... #24

Closed woldtwerk closed 3 months ago

woldtwerk commented 5 years ago

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?

icc commented 5 years ago

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

woldtwerk commented 5 years ago

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

icc commented 5 years ago

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

woldtwerk commented 5 years ago

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

JuStTheDev commented 5 years ago

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 commented 5 years ago

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

woldtwerk commented 5 years ago

The fix by @JulianSSS works for me.

devland commented 3 months ago

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