question set in semantics loop

I cannot create a question set , when I try the system just gives the message loading semantics,please wait  and as Diana Ross once sang....I'm still waiting

So far I have discovered thiis problem with

question set

presentation

Drag n Drop 

in my chrome window thing, I get this message

Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}

h5peditor.js?ver=1.4.1:117 parsererror

 

h5peditor.js?ver=1.4.1:118 SyntaxError: Unexpected token < {stack: (...), message: "Unexpected token <"}

falcon's picture

Thanks for reporting! Is this Wordpress or Drupal? Can you paste in the entire response text you get from the server? It is in that chrome window thing somewhere :)

this is what I get on the Chrome message

Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}

h5peditor.js?ver=1.4.1:117 parsererror

h5peditor.js?ver=1.4.1:118 SyntaxError: Unexpected token < {stack: (...), message: "Unexpected token <"}message: "Unexpected token <"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error

 

I can copy paste a larger report, but that seems to take up a couple of pages

falcon's picture

Yeah, please paste the large report! :)

h5peditor.js?ver=1.4.1:115 Ajax request failed

h5peditor.js?ver=1.4.1:116 Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}abort: function (e){var t=e||T;return l&&l.abort(t),k(0,t),this}always: function (){return i.done(arguments).fail(arguments),this}complete: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}done: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}error: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}fail: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}getAllResponseHeaders: function (){return 2===x?a:null}getResponseHeader: function (e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t}overrideMimeType: function (e){return x||(p.mimeType=e),this}pipe: function (){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()}progress: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}promise: function (e){return null!=e?b.extend(e,r):r}readyState: 4responseText: "<br />↵<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>326</b><br />↵<br />↵<b>Warning</b>:  file_get_contents(http://interspeech-e.de/wp-content/uploads/h5p/libraries/H5PEditor.Quest...) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>326</b><br />↵<br />↵<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>326</b><br />↵<br />↵<b>Warning</b>:  file_get_contents(http://interspeech-e.de/wp-content/uploads/h5p/libraries/H5PEditor.Verti...) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>326</b><br />↵<br />↵<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>334</b><br />↵<br />↵<b>Warning</b>:  file_get_contents(http://interspeech-e.de/wp-content/uploads/h5p/libraries/H5PEditor.Verti...) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>334</b><br />↵<br />↵<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>334</b><br />↵<br />↵<b>Warning</b>:  file_get_contents(http://interspeech-e.de/wp-content/uploads/h5p/libraries/FontAwesome-4.1...) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/web388/inth21/ftproot/interspeech-e.de/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php</b> on line <b>334</b><br />↵{"semantics":[{"name":"introPage","type":"group","label":"Quiz introduction","fields":[{"name":"showIntroPage","type":"boolean","label":"Display introduction"},{"name":"title","type":"text","label":"Title","optional":true,"description":"This title will be displayed above the introduction text.","tags":["sub","sup","strong","em"]},{"name":"introduction","type":"text","widget":"html","label":"Introduction text","optional":true,"description":"This text will be displayed before the quiz starts.","enterMode":"p","tags":["sub","sup","strong","em","p"]},{"name":"startButtonText","type":"text","label":"Start button text","optional":true,"default":"Start Quiz"},{"name":"backgroundImage","type":"image","label":"Background image","optional":true,"description":"An optional background image for the introduction."}]},{"name":"backgroundImage","type":"image","label":"Background image","optional":true,"description":"An optional background image for the Question set."},{"name":"progressType","type":"select","label":"Progress indicator","description":"Question set progress indicator style.","options":[{"value":"textual","label":"Textual"},{"value":"dots","label":"Dots"}],"default":"dots"},{"name":"passPercentage","type":"number","label":"Pass percentage","description":"Percentage of Total score required for passing the quiz.","min":0,"max":100,"step":1,"default":50},{"name":"questions","label":"Questions","type":"list","widgets":[{"name":"VerticalTabs","label":"Default"},{"name":"QuestionSetTextualEditor","label":"Textual"}],"min":1,"entity":"question","field":{"name":"question","type":"library","label":"Question type","description":"Library for this question.","options":["H5P.MultiChoice 1.2","H5P.DragQuestion 1.2","H5P.Blanks 1.2","H5P.MarkTheWords 1.2","H5P.DragText 1.2"]}},{"name":"texts","type":"group","label":"Interface texts in quiz","common":true,"fields":[{"name":"prevButton","type":"text","label":"Back button","default":"Previous"},{"name":"nextButton","type":"text","label":"Next button","default":"Next"},{"name":"finishButton","type":"text","label":"Finish button","default":"Finish"},{"name":"textualProgress","type":"text","label":"Progress text","description":"Text used if textual progress is selected.","default":"Question: @current of @total questions","tags":["strong","em"]}]},{"name":"endGame","type":"group","label":"Quiz finished","fields":[{"name":"showResultPage","type":"boolean","label":"Display results","default":true},{"name":"message","type":"text","label":"Feedback heading","default":"Your result:","optional":true,"description":"This heading will be displayed at the end of the quiz when the user has answered all questions.","tags":["strong","em"]},{"name":"scoreString","type":"text","label":"Score display text","description":"Text used to display Total user score. \"@score\" will be replaced by calculated score, \"@total\" will be replaced by maximum possible score. ","default":"You got @score points of @total possible.","optional":true},{"name":"successGreeting","type":"text","label":"Quiz passed greeting","placeholder":"Congratulations!","default":"Congratulations!","optional":true,"description":"This text will be displayed above the score if the user has successfully passed the quiz.","tags":["strong","em"]},{"name":"successComment","type":"text","widget":"html","label":"Passed comment","default":"You did very well!","optional":true,"description":"This comment will be displayed after the score if the user has successfully passed the quiz.","tags":["sub","sup","strong","em","p"]},{"name":"failGreeting","type":"text","label":"Quiz failed title","default":"You did not pass this time.","optional":true,"description":"This text will be displayed above the score if the user has failed the quiz.","tags":["strong","em"]},{"name":"failComment","type":"text","widget":"html","label":"Failed comment","default":"Have another try!","optional":true,"description":"This comment will be displayed after the score if the user has failed the quiz.","tags":["sub","sup","strong","em","p"]},{"name":"solutionButtonText","type":"text","label":"Solution button label","default":"Show solution","description":"Text for the solution button."},{"name":"retryButtonText","type":"text","label":"Retry button label","default":"Retry","description":"Text for the retry button."},{"name":"finishButtonText","type":"text","label":"Finish button text","default":"Finish"},{"name":"showAnimations","type":"boolean","label":"Display video before quiz results"},{"name":"skippable","type":"boolean","label":"Enable skip video button"},{"name":"skipButtonText","type":"text","label":"Skip video button label","default":"Skip video"},{"name":"successVideo","type":"video","label":"Passed video","optional":true,"description":"This video will be played if the user successfully passed the quiz."},{"name":"failVideo","type":"video","label":"Fail video","optional":true,"description":"This video will be played if the user failes the quiz."}]},{"name":"override","type":"group","label":"Settings for \"Show solution\" button and \"Retry\".","description":"These options will let you override when to display \"Show solution\" button and \"Retry\" in integrated h5p content.","optional":true,"fields":[{"name":"overrideButtons","type":"boolean","label":"Enable override for \"Show solution\" and \"Retry\" settings.","description":"If this is enabled the questions own settings will be ignored and the below settings will be used instead.","default":false},{"name":"overrideShowSolutionButton","type":"boolean","label":"Enable \"Show solution\" buttons.","description":"Enabling this option will make questions show the \"Show solution\" button.","default":false},{"name":"overrideRetry","type":"boolean","label":"Enable \"Retry\".","description":"Enabling this option will make the user able to \"Retry\" .","default":false}]}],"language":null,"javascript":{"http:\/\/interspeech-e.de\/wp-content\/uploads\/h5p\/libraries\/H5PEditor.QuestionSetTextualEditor-1.0\/question-set-textual-editor.js?ver=1.0.0":"\n","http:\/\/interspeech-e.de\/wp-content\/uploads\/h5p\/libraries\/H5PEditor.VerticalTabs-1.1\/vertical-tabs.js?ver=1.1.0":"\n"},"css":{"http:\/\/interspeech-e.de\/wp-content\/uploads\/h5p\/libraries\/H5PEditor.VerticalTabs-1.1\/vertical-tabs.css?ver=1.1.0":"","http:\/\/interspeech-e.de\/wp-content\/uploads\/h5p\/libraries\/FontAwesome-4.1\/font-awesome.css?ver=4.1.2":""}}"setRequestHeader: function (e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this}state: function (){return n}status: 200statusCode: function (e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this}statusText: "OK"success: function (){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this}then: function (){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()}__proto__: Object

h5peditor.js?ver=1.4.1:117 parsererror

 

h5peditor.js?ver=1.4.1:118 SyntaxError: Unexpected token < {stack: (...), message: "Unexpected token <"}message: "Unexpected token <"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error

icc's picture

Currently you need to enable allow_url_fopen in php.ini for H5P to work. 

This will be fixed in the upcoming release.