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

Switching "JavaScript Cache" on crashes first.js

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Set $CFG->cachejs = true; in config.php
      2. Install qtype_wordselect from the plugins database
      3. Install mod_treasurehunt from the plugins database
      4. Log into the site
      5. Purge caches
      6. Open the User menu
        1. Confirm that the menu opens
      7. Set $CFG->cachejs = false; in config.php and repeat steps 1 through 6.
      Show
      Set $CFG->cachejs = true; in config.php Install qtype_wordselect from the plugins database Install mod_treasurehunt from the plugins database Log into the site Purge caches Open the User menu Confirm that the menu opens Set  $CFG->cachejs = false; in config.php and repeat steps 1 through 6.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-67327-master

      Description

      If you switch "cachejs" on often pulldownmenus are not working. This way for example a normal trainer cannot switch editmode on. We use Moove as Design, but the problem also appears with the standard Designs. We testet Safari, Firefox and Chrome. In Chrome the console logs this:

      first.js:52 Uncaught TypeError: a is not a function
      at first.js:52
      at Object.execCb (require.min.js:5)
      at b.check (require.min.js:5)
      at b.<anonymous> (require.min.js:5)
      at require.min.js:5
      at require.min.js:5
      at each (require.min.js:5)
      at b.emit (require.min.js:5)
      at b.check (require.min.js:5)
      at b.enable (require.min.js:5)

      If you switch cachejs off, everything works fine.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Lyons
              Reporter:
              thorstenbutsch Thorsten Butsch
              Peer reviewer:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Integrator:
              Jake Dallimore Jake Dallimore
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              14 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 45 minutes
                  5h 45m