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

Javascript error when uploading a file

    XMLWordPrintable

Details

    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE
    • MDL-42959-master
    • Hide

      With your JS console open, and debug_developer set:*

      • Edit your profile
      • Open the filepicker to upload a new file
      • Upload a new file
        • Confirm that no JS exception was thrown, and no new errors were shown
      Show
      With your JS console open, and debug_developer set:* Edit your profile Open the filepicker to upload a new file Upload a new file Confirm that no JS exception was thrown, and no new errors were shown

    Description

      When I upload a file I see a Javascript error in the Javascript console.

      Uncaught TypeError: Cannot call method 'removeAttribute' of null
      

      The AJAX request finishes as expected for what I see. Only master is affected.

      Discovered while working on MDL-42625, as the end of the AJAX request is not detected because of the JS error.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dmonllao David Monllaó
              Jason Fowler Jason Fowler
              Sam Hemelryk Sam Hemelryk
              Mark Nelson Mark Nelson
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jan/14