Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Status: Active » Fixed
FileSize
1.08 KB

  • mikeytown2 committed a610b06 on 7.x-2.x
    Issue #2325743 by mikeytown2: Fix for moving external scripts if jquery...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pdesai’s picture

I am getting Uncaught Error: Bootstrap requires jQuery. I applied the patch from #1 and it is still throwing the same error. Any ideas?

mikeytown2’s picture

Have you tried this with the latest dev of advagg?

pdesai’s picture

No, I was using the 2.7 release. I have replaced it with the latest dev release and still receiving the same error.

mikeytown2’s picture

Status: Closed (fixed) » Needs review
FileSize
5.84 KB

You might have a bug with the way you're adding bootstrap.js inside your theme. In any case try this patch.

pdesai’s picture

@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?

  • mikeytown2 committed 55434a5 on 7.x-2.x
    Issue #2325743 by mikeytown2: Make sure advagg js/css alter hooks run...
mikeytown2’s picture

Status: Needs review » Fixed
FileSize
7.72 KB

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 :)

pdesai’s picture

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!

Thanks!

PS: Appreciate the quick responses!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

phponwebsites’s picture

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

phponwebsites’s picture

Solution:
Use latest dev version(7.x-2.x-dev) of advagg from https://www.drupal.org/project/advagg.
Thanks for #milkytown2