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

Content bank throws JS errors when toggling view of empty bank

XMLWordPrintable

      When toggling the view of the content bank ("Display content bank with icons/file details"), if there is no content available, then clicking either of those buttons produces the following Javascript error in the browser console:

      23:03:06.138 Uncaught TypeError: heading is null
          registerListenerEvents http://localhost:8000/lib/requirejs.php/1683838115/core/first.js:1483
          registerListenerEvents http://localhost:8000/lib/requirejs.php/1683838115/core/first.js:1483
          init http://localhost:8000/lib/requirejs.php/1683838115/core/first.js:1483
          <anonymous> http://localhost:8000/contentbank/index.php?sesskey=mrF1itzAqH&contextid=1:667
          execCb http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          init http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          o http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          setTimeout handler*req.nextTick< http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          o http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          requirejs http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          <anonymous> http://localhost:8000/contentbank/index.php?sesskey=mrF1itzAqH&contextid=1:667
          execCb http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          bind http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          emit http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          each http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          emit http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          bind http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          emit http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          each http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          emit http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          init http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          h http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          completeLoad http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          onScriptLoad http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          fetch http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          bind http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          each http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          init http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          h http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          completeLoad http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          onScriptLoad http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          load http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          fetch http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          check http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          bind http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          each http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          enable http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          init http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          o http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          setTimeout handler*req.nextTick< http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          o http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          requirejs http://localhost:8000/lib/javascript.php/1683838115/lib/requirejs/require.min.js:5
          <anonymous> http://localhost:8000/contentbank/index.php?sesskey=mrF1itzAqH&contextid=1:591
      first.js:1483:2119
      
      

      Because this element does not exist in the DOM

            pholden Paul Holden
            pholden Paul Holden
            Amaia Anabitarte Amaia Anabitarte
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 50 minutes
                1h 50m

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