"Fill in the blank", the activity doesn't show up

The problem:

After the activity is selected from the drop-down menu it seems it doesn't completely load: some parts of the preferences are not loaded. Also, when all the inside settings (those which are visible) are selected and the activity is saved it doesn't show up.

Is there a way to REinstall this part of activity only? 

  1. I installed the content type in moodle (through the embedded menu). At first there seemed to be an error, but then everything completed successfully. 
  2. Moodle 3.7
  3. Mobile and Desktop
  4. Chrome, Safari
  5. 1.20.2 (2020020500)
  6. Fill in the gaps
  7. No
  8. No
  9. No
  10. No

 

otacke's picture

Hi Alex!

Are you sure about 7 (and 8)?

Best,

Oliver 

Still working on finding PHP errors.

As for the browser

That's what I got from the 

Uncaught TypeError: Cannot read property 'name' of undefined

    at List.SemanticStructure.self.appendTo (h5peditor-semantic-structure.js?ver=2020020500:210)

    at ns.Group.appendTo (h5peditor-group.js?ver=2020020500:117)

    at Object.ns.processSemanticsChunk (h5peditor.js?ver=2020020500:475)

    at ns.Form.processSemantics (h5peditor-form.js?ver=2020020500:445)

    at h5peditor-library-selector.js?ver=2020020500:269

    at h5peditor.js?ver=2020020500:224

    at Object.ns.libraryRequested (h5peditor.js?ver=2020020500:151)

    at Object.success (h5peditor.js?ver=2020020500:223)

    at c (jquery.js?ver=2020020500:2)

    at Object.fireWith [as resolveWith] (jquery.js?ver=2020020500:2)

SemanticStructure.self.appendTo @ h5peditor-semantic-structure.js?ver=2020020500:210

ns.Group.appendTo @ h5peditor-group.js?ver=2020020500:117

ns.processSemanticsChunk @ h5peditor.js?ver=2020020500:475

ns.Form.processSemantics @ h5peditor-form.js?ver=2020020500:445

(anonymous) @ h5peditor-library-selector.js?ver=2020020500:269

(anonymous) @ h5peditor.js?ver=2020020500:224

ns.libraryRequested @ h5peditor.js?ver=2020020500:151

success @ h5peditor.js?ver=2020020500:223

c @ jquery.js?ver=2020020500:2

fireWith @ jquery.js?ver=2020020500:2

k @ jquery.js?ver=2020020500:4

r @ jquery.js?ver=2020020500:4

XMLHttpRequest.send (async)

send @ jquery.js?ver=2020020500:4

ajax @ jquery.js?ver=2020020500:4

ns.loadLibrary @ h5peditor.js?ver=2020020500:203

ns.LibrarySelector.loadSemantics @ h5peditor-library-selector.js?ver=2020020500:238

librarySelectHandler @ h5peditor-library-selector.js?ver=2020020500:56

ns.SelectorHub.getSelectedLibrary @ h5peditor-selector-hub.js?ver=2020020500:225

loadLibrary @ h5peditor-library-selector.js?ver=2020020500:68

call @ h5p-event-dispatcher.js?ver=2020020500:209

EventDispatcher.trigger @ h5p-event-dispatcher.js?ver=2020020500:240

(anonymous) @ h5peditor-selector-hub.js?ver=2020020500:58

(anonymous) @ h5p-hub-client.js?ver=2020020500:45

trigger @ h5p-hub-client.js?ver=2020020500:45

n.handleUse @ h5p-hub-client.js?ver=2020020500:33

n.handleDetailUse @ h5p-hub-client.js?ver=2020020500:40

n.handleUse @ h5p-hub-client.js?ver=2020020500:40

u @ h5p-hub-client.js?ver=2020020500:25

invokeGuardedCallback @ h5p-hub-client.js?ver=2020020500:33

invokeGuardedCallbackAndCatchFirstError @ h5p-hub-client.js?ver=2020020500:33

h @ h5p-hub-client.js?ver=2020020500:25

b @ h5p-hub-client.js?ver=2020020500:25

g @ h5p-hub-client.js?ver=2020020500:25

m @ h5p-hub-client.js?ver=2020020500:25

T @ h5p-hub-client.js?ver=2020020500:25

qr @ h5p-hub-client.js?ver=2020020500:33

ke @ h5p-hub-client.js?ver=2020020500:25

batchedUpdates @ h5p-hub-client.js?ver=2020020500:25

J @ h5p-hub-client.js?ver=2020020500:25

Me @ h5p-hub-client.js?ver=2020020500:25

otacke's picture

Hi Alex!

This error possibly indicates a problem with the so called semantics file. Hard to tell on moodle as it doesn't allow you to easily check the files. On moodle, things are a little trickier than on other host systems :-/

You could temporarily (!) add

$CFG->mod_hvp_dev = 1;

to moodle's config file, then download the Fill in the blanks demo file from this site, upload it to yours and then remove the line again.

That should overwrite the current library files with those from the content type.

Best,

Oliver