Dialog Cards Editor | missing add and edit fields in Moodle 3.5.3+

Dialog Cards (1.8.2)

Updated Dialog cards to version 1.8.2 via the update prompt when adding New H5P content to a course. I selected to use the content type and noticed the fields for adding words, sounds, images and cards were now missing (as in the attached screenshot). Used it a lot until now with no issues as the H5P Libraries show 143 instances of the content type being used. 

 

Previous instances:

Previous instances still work, until you try to edit them. They also show the blank editor with no content. When you save and display the content area is also blank except for the heading and return button. When you go back into edit, select a different content type, confirm when getting the warning message, and go back to Dialog cards, previously saved content will display as normal in the editor. Once saved you still get a blank screen. 

 

Detail Summary:

  • Moodle 3.5.3+
  • H5P Latest Update
  • Dialog Cards (1.8.2)
  • Chrome browser PC
  • Theme: Essential
  • Recent install: Course Format - Tiles
  • No other content types seem to be affected
Attachments: 
BV52's picture

Hi,

Would you mind checking the following:

  1. Any browser console errors
  2. Any PHP errors

-BV

Hi BV, 

 

Console Error when Dialog Cards editor is open:

 

h5peditor-semantic-s…?ver=2019111300:210 Uncaught TypeError: Cannot read property 'name' of undefined at List.SemanticStructure.self.appendTo (h5peditor-semantic-s…?ver=2019111300:210) at Object.ns.processSemanticsChunk (h5peditor.js?ver=2019111300:475) at ns.Form.processSemantics (h5peditor-form.js?ver=2019111300:445) at h5peditor-library-se…?ver=2019111300:269 at h5peditor.js?ver=2019111300:224 at Object.ns.libraryRequested (h5peditor.js?ver=2019111300:151) at Object.success (h5peditor.js?ver=2019111300:223) at c (jquery.js?ver=2019111300:2) at Object.fireWith [as resolveWith] (jquery.js?ver=2019111300:2) at k (jquery.js?ver=2019111300:4) SemanticStructure.self.appendTo@h5peditor-semantic-s…?ver=2019111300:210 [email protected]?ver=2019111300:475 [email protected]?ver=2019111300:445 (anonymous)@h5peditor-library-se…?ver=2019111300:269 (anonymous)@h5peditor.js?ver=2019111300:224 [email protected]?ver=2019111300:151 [email protected]?ver=2019111300:223 [email protected]?ver=2019111300:2 [email protected]?ver=2019111300:2 [email protected]?ver=2019111300:4 [email protected]?ver=2019111300:4 XMLHttpRequest.send (async)   [email protected]?ver=2019111300:4 [email protected]?ver=2019111300:4 [email protected]?ver=2019111300:203 ns.LibrarySelector.loadSemantics@h5peditor-library-se…?ver=2019111300:238 librarySelectHandler@h5peditor-library-se…s?ver=2019111300:56 ns.SelectorHub.getSelectedLibrary@h5peditor-selector-h…?ver=2019111300:225 loadLibrary@h5peditor-library-se…s?ver=2019111300:68 call@h5p-event-dispatcher…?ver=2019111300:209 EventDispatcher.trigger@h5p-event-dispatcher…?ver=2019111300:240 (anonymous)@h5peditor-selector-h…s?ver=2019111300:58 (anonymous)@h5p-hub-client.js?ver=2019111300:45 [email protected]?ver=2019111300:45 [email protected]?ver=2019111300:33 [email protected]?ver=2019111300:40 [email protected]?ver=2019111300:1 [email protected]?ver=2019111300:1 [email protected]?ver=2019111300:1 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:33 [email protected]?ver=2019111300:33 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:33 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25 [email protected]?ver=2019111300:25

 

Will get a PHP error log as soon as I'm in front of my own PC. 

 

Thanks 

Talita

Getting the following PHP errors:

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor-semantic-structure.js?ver=2019111300 on line 26

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor.js?ver=2019111300 on line 197

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor.js?ver=2019111300 on line 197

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor-form.js?ver=2019111300 on line 71

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor-library-selector.js?ver=2019111300 on line 179

Parsing error:  The keyword 'const' is reserved in /usr/www/users/kaleidfmja/learn/mod/hvp/editor/scripts/h5peditor-library-selector.js?ver=2019111300 on line 179

Error: 'ActiveXObject' is not defined. [no-undef] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 2

Error: Empty block statement. [no-empty] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 2

Error: Expected a conditional expression and instead saw an assignment. [no-cond-assign] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 2

Error: Expected a conditional expression and instead saw an assignment. [no-cond-assign] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 3

Error: Empty block statement. [no-empty] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 3

Error: Expected a conditional expression and instead saw an assignment. [no-cond-assign] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 4

Error: Empty block statement. [no-empty] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 4

Error: Dedine is not defined. [no-undef] in /usr/www/users/kaleidfmja/learn/mod/hvp/library/js/jquery.js?ver=2019111300 on line 4