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

Switching "JavaScript Cache" on crashes first.js

    XMLWordPrintable

Details

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-67327-master
    • 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.

    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

              dobedobedoh Andrew Lyons
              thorstenbutsch Thorsten Butsch
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jake Dallimore Jake Dallimore
              Gladys Basiana Gladys Basiana
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              14 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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