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

Prevent Minify from caching things (even more)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.6
    • None
    • JavaScript
    • MOODLE_26_STABLE
    • Hide

      Ensure that in your config.php you have:

      unset($CFG->jsrev);
      $CFG->cachejs = true;
      

      • View page source of any page in Moodle
      • Confirm that both yui*configFns have value. These are in the header. One belongs to YUI2in3 and the other to Moodle's YUI inclusion
      • Clear your cache using the CLI cache purger
      • On the first page view, confirm that the configfns are still correct.
      Show
      Ensure that in your config.php you have: unset($CFG->jsrev); $CFG->cachejs = true; View page source of any page in Moodle Confirm that both yui*configFns have value. These are in the header. One belongs to YUI2in3 and the other to Moodle's YUI inclusion Clear your cache using the CLI cache purger On the first page view, confirm that the configfns are still correct.

    Description

      I just updated to the lastest weekly build on Master. Now, none of the JavaScript works on any page.

      In the Console I see

      Uncaught TypeError: Cannot read property 'theme_bootstrapbase' of undefined javascript.php?theme=clean&rev=-1&type=footer:4

      That is the line of code:

      YUI().use('moodle-theme_bootstrapbase-bootstrap', function(Y) {
          Y.Moodle.theme_bootstrapbase.bootstrap.init();
      });
      

      Looking for where that should be defined, I see that

      .../theme/yui_combo.php?moodle/-1/moodle-theme_bootstrapbase-bootstrap/moodle-theme_bootstrapbase-bootstrap-debug.js

      is being loaded (with a 200 HTTP code), but all that file conains is

       
      // Incorrect moodle module inclusion. Not enough component information in moodle/-1/moodle-theme_bootstrapbase-bootstrap/moodle-theme_bootstrapbase-bootstrap-debug.js.
      

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              timhunt Tim Hunt
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: