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.
@mikeytown2: I am using the Bootstrap theme with a simple sub-theme. The rendering of bootstrap.js is done by the base Bootstrap theme. The setting I have in my sub-theme is to use Bootstrap CDN version 3.0.2 as noted for Method 2.
I was not able to apply patch #7 since it doesn't match with dev version?
Try the latest dev; it should incorporate this patch. You'll have to clear the drupal caches as this change modifies what hooks get ran with js/css_alter.
FYI: This patch and the last patch are against the latest dev. Not sure why you couldn't apply it. Providing the error message when saying it doesn't apply is usually helpful :)
I have installed the latest dev form yesterday. I do flush all caches from the admin menu after any changes related to advagg. With the latest dev, I can confirm it is working 100% with Bootstrap being loaded from CDN!
when I tried to apply all above 3 patchs 10,7,1, i'm getting error
Fatal error: Cannot redeclare advagg_get_css() (previously declared in all/modules/contrib/advagg/advagg.module:1266) in all/modules/contrib/advagg/advagg.module on line 1409
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedComment #4
pdesai CreditAttribution: pdesai commentedI am getting Uncaught Error: Bootstrap requires jQuery. I applied the patch from #1 and it is still throwing the same error. Any ideas?
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedHave you tried this with the latest dev of advagg?
Comment #6
pdesai CreditAttribution: pdesai commentedNo, I was using the 2.7 release. I have replaced it with the latest dev release and still receiving the same error.
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedYou might have a bug with the way you're adding bootstrap.js inside your theme. In any case try this patch.
Comment #8
pdesai CreditAttribution: pdesai commented@mikeytown2: I am using the Bootstrap theme with a simple sub-theme. The rendering of bootstrap.js is done by the base Bootstrap theme. The setting I have in my sub-theme is to use Bootstrap CDN version 3.0.2 as noted for Method 2.
I was not able to apply patch #7 since it doesn't match with dev version?
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commentedTry the latest dev; it should incorporate this patch. You'll have to clear the drupal caches as this change modifies what hooks get ran with js/css_alter.
FYI: This patch and the last patch are against the latest dev. Not sure why you couldn't apply it. Providing the error message when saying it doesn't apply is usually helpful :)
Comment #11
pdesai CreditAttribution: pdesai commentedI have installed the latest dev form yesterday. I do flush all caches from the admin menu after any changes related to advagg. With the latest dev, I can confirm it is working 100% with Bootstrap being loaded from CDN!
Thanks!
PS: Appreciate the quick responses!
Comment #13
phponwebsites CreditAttribution: phponwebsites commentedwhen I tried to apply all above 3 patchs 10,7,1, i'm getting error
Fatal error: Cannot redeclare advagg_get_css() (previously declared in all/modules/contrib/advagg/advagg.module:1266) in all/modules/contrib/advagg/advagg.module on line 1409
Comment #14
phponwebsites CreditAttribution: phponwebsites commentedSolution:
Use latest dev version(7.x-2.x-dev) of advagg from https://www.drupal.org/project/advagg.
Thanks for #milkytown2