Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63654

Atto doesn't load and menus are not expanded while editing a patter match qtype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2
    • Fix Version/s: None
    • Component/s: Forms Library, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      While I was improving the match rules in a pattern match questiontype I noticed that suddenly the atto editor didn't load and the collapsed menus were not clickable any more. That is I can't expand any of the sections in the question type editing form (for example 'Multiple Tries, 'Tags' or other specific for this particular qtype).

      When I reload (F5) the form, the web dev console of firefox shows a 'TypeError: this.div is null' error.  See it below:

      ---------------

      moodle-core-event: Global event published: FORM_ERROR yui_combo.php:5828:21
      moodle-core-event: Global event published: BLOCK_CONTENT_UPDATED yui_combo.php:5828:21

      TypeError: this.div is null javascript-static.js:6:270
      M.util.CollapsibleRegion
      https://mysite/lib/javascript.php/1539542044/lib/javascript-static.js:6:270
      M.util.init_collapsible_region/<
      https://mysite/lib/javascript.php/1539542044/lib/javascript-static.js:6:102
      _notify
      https://mysite/theme/yui_combo.php:1089:17
      handleLoader
      https://mysite/theme/yui_combo.php:1234:25
      _finish
      https://mysite/theme/yui_combo.php:8152:13
      _onSuccess
      https://mysite/theme/yui_combo.php:8201:9
      complete
      https://mysite/theme/yui_combo.php:8440:21
      onSuccess
      https://mysite/theme/yui_combo.php:8502:21
      _finish
      https://mysite/theme/yui_combo.php:4944:13
      _next
      https://mysite/theme/yui_combo.php:5141:13
      _progress
      https://mysite/theme/yui_combo.php:5249:9
      onLoad
      https://mysite/theme/yui_combo.php:5041:13 

      --------

      I tried to solve the issue purging caches, changing the theme, changing the atto editor and even changing the default language. I made one change at a time without success.

      It's weird that, if I clone/copy the question I can open the new question and all seems to work well. A reload (F5) in the cloned question doesn't display the 'TypeError: this.div is null' error mentioned before however the web dev console of firefox shows a warning on:


      Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/

      I'm afraid that I'm going to face the issue again but I have no idea how to fix it or about what can cause it. I refer the issue to 'Quiz' and 'Forms Library' components because I only found it while working in a [Pattern Match] Quiz form.

      I'd appreciate your help to fix it.

      Toni

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tonisoto Toni Soto
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: