Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get this error when JS aggregation is enabled, as is jquery_update (no updating on Aurora's side).
Comments
Comment #1
iamcarrico CreditAttribution: iamcarrico commentedCan you please let me know what version you are using, as well as the settings for putting the JS in the footer, and if you are using the experimental handling.
I have just made some changes, and the code seems to be working on my site... but that is a limited use case.
Comment #2
iamcarrico CreditAttribution: iamcarrico commentedComment #3
Elijah LynnI just had this error and ran through it with xdebug.
This is most likely because you don't have the actual Modernizr JS library installed in either your module folder (sites/*/modules/modernizr/js/modernizr-min.js) or library folder (sites/all/libraries/modernizr/modernizr.min.js).
The function modernizr_get_path() looks in the module & libraries folders for the '/^modernizr[a-z0-9\.-]*\.js$/' file.
To solve you could grab http://modernizr.com/downloads/modernizr-latest.js and put in your Modernizr module folder, like this => sites/*/modules/modernizr/js/modernizr-min.js
Comment #4
Elijah LynnCrosslinking similar issue - http://drupal.org/node/1862860
Comment #5
iamcarrico CreditAttribution: iamcarrico commentedThis error has not been since since that version-- and updates to Aurora / Modernizr seem to have fixed it.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedJust to clarify from #3 above, should this be modernizr-min.js or modernizr.min.js, as is stated on http://drupal.org/project/modernizr?
Comment #7
iamcarrico CreditAttribution: iamcarrico commentedIt is "modernizr.min.js", all future questions should refer to the modernizr module's docs.