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

Adding Restrict access in course module causes JS errors

      Open console in browser -> Open course module -> go to the restrict access -> add some restriction. In console see js error: "Uncaught TypeError: node is null"

      23:29:41.199 Uncaught TypeError: node is null
          hasClass http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:15514
          name http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:17344
      yui_combo.php:15514:24
          hasClass http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:15514
          name http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:17344
          centerDialogue http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:765
          centerDialogOnVisible http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:819
          observer http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:796
          (Async: ResizeObserverCallback)
          centerDialogOnDialogSizeChange http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:795
          initializer http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:541
          _initHierarchy http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28849
          _baseInit http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28416
          init http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:29508
          _initBase http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28380
          BaseCore http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28200
          Base http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:29715
          Widget http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:32076
          BuiltClass http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:30008
          DIALOGUE http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:444
          clickAdd http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:2196
          List http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:1883
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13760
          notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13789
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13452
          _procSubs http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13578
          fireSimple http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13545
          _fire http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13527
          fire http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13496
          fn http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:20472
          (Async: EventListener.handleEvent)
          add http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:185
          _createWrapper http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:20487
          _attach http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:20582
          on http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:14212
          on http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:14180
          unsequester http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:12163
          key http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:12141
          List http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:1882
          init http://localhost:8000/theme/yui_combo.php?m/1718663362/core/widget/widget-focusafterclose-debug.js&m/1718663362/core/lockscroll/lockscroll-debug.js&m/1718663362/core/notification/notification-dialogue-debug.js&3.18.1/json-stringify/json-stringify.js&m/1718663362/core_availability/form/form-debug.js&m/1718663362/availability_completion/form/form-debug.js&3.18.1/datatype-xml-parse/datatype-xml-parse.js&3.18.1/io-xdr/io-xdr.js&3.18.1/io-form/io-form.js&3.18.1/io-upload-iframe/io-upload-iframe.js&3.18.1/queue-promote/queue-promote.js&3.18.1/io-queue/io-queue.js&m/1718663362/availability_date/form/form-debug.js&m/1718663362/availability_group/form/form-debug.js&m/1718663362/availability_grouping/form/form-debug.js&m/1718663362/availability_profile/form/form-debug.js:1552
          <anonymous> http://localhost:8000/course/modedit.php?return=1&update=1:5912
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1105
          use http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1021
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1105
          handleLoader http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1250
          _finish http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8208
          _onSuccess http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8257
          complete http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8496
          onSuccess http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8558
          _finish http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4994
          _next http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5191
          _progress http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5299
          onLoad http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5091
          (Async: EventHandlerNonNull)
          _insert http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5165
          execute http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4917
          _next http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4695
          _onTransactionFinish http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4681
          _finish http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5002
          _next http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5191
          _progress http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5299
          onLoad http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5091
          (Async: EventHandlerNonNull)
          _insert http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5165
          execute http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4917
          _next http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4695
          _load http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4674
          css http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4383
          _insert http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8513
          insert http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8593
          _continue http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8576
          insert http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8595
          _use http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1313
          use http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1020
          <anonymous> http://localhost:8000/course/modedit.php?return=1&update=1:5912
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13760
          notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13789
          _notify http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13452
          _procSubs http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13578
          fireSimple http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13545
          _fire http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:13527
          fire http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:14658
          _load http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:20756
          onLoad http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:20156
          (Async: EventListener.handleEvent)
          add http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:185
          <anonymous> http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:21038
          <anonymous> http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:21065
          _attach http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:837
          _attach http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:803
          _use http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1269
          use http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1020
          <anonymous> http://localhost:8000/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:40936
      

      But settings are saved successfully

       

            pholden Paul Holden
            fidan Synbulatov Fidan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.