Hello,
today i upgraded our multisite drupals and recognized a javascript error concerning jQuery and $-functions. The problems vanished after disabling "Advanced Aggregation".
So i investigated the source of this and found the problem within advagg_js_cdn.module on line 84:
if (isset($jquery_update_filepath) && ($path == $jquery_update_filepath . '/replace/jquery.min.js' || $path == $jquery_filepath . '/replace/jquery.js')) {
The last $jquery_filepath is wrong and should be $jquery_update_filepath:
if (isset($jquery_update_filepath) && ($path == $jquery_update_filepath . '/replace/jquery.min.js' || $path == $jquery_update_filepath . '/replace/jquery.js')) {
I created a patch for this which is attached to this posting. It needs to be placed within the modules folder.
Testing:
patch -p1 --dry-run < patch_advagg_jquery_google_cdn_fix.patch
Patching:
patch -p1 < patch_advagg_jquery_google_cdn_fix.patch
Regards
.nowrap
Comment | File | Size | Author |
---|---|---|---|
#2 | advagg-1567876-2-fix-jquery_update.patch | 1.87 KB | mikeytown2 |
patch_advagg_jquery_google_cdn_fix.patch | 565 bytes | nowrap | |
Comments
Comment #1
rjbrown99 CreditAttribution: rjbrown99 commentedPatch here.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch has been committed.
Works with the latest jquery update dev.