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.
Drupal's default jQuery doesn't get called when the CDN and jQuery options in the theme settings are left at their default values.
Here's the portion of template.php causing the issue:
else {
// If a CDN is not selected, but an updated version still wants to be used.
$js['misc/jquery.js']['data'] = "$path_to_theme/js/jquery-$version.min.js";
}
It doesn't check if the default jQuery is in play and automatically looks for the file in Aurora's folder.
Comment | File | Size | Author |
---|---|---|---|
#1 | wrong-default-jquery.patch | 471 bytes | bxtaylor |
Comments
Comment #1
bxtaylor CreditAttribution: bxtaylor commentedAnd here's a patch...
Comment #2
iamcarrico CreditAttribution: iamcarrico commentedThe code shouldn't even be getting to that point. This is a truthyness error earlier on (line 425). Will investigate.
Comment #3
iamcarrico CreditAttribution: iamcarrico commentedAaaannndddd fixed.
Updated code in latest 7.x-2.x