Help with a .js error?


(Rob Beattie) #1

I’m getting a .js error on this page - http://www.riverrunning.co.uk. Since my knowledge of this stuff is pretty agricultural, I think it’s to do with Fancybox - which is Armadillo’s built-in lightbox.

Anyone who knows a bit more than I care to take a quick look with their browser’s debugging tools? I’m not asking or a fix - though I’ll take it - but some guidance as to whether it looks like the error refers to:

  1. Armadillo and Fancybox
  2. The theme - Henk’s Retract theme
  3. Will’s Litebox stack (which is also on the page)

Then I know who to hassle! :sunglasses:

Many thanks,

Rob


Armadillo and Gallery 3 stack
Armadillo causing problems
(Will Woodgate) #2

Line #50 of your armadilloFunctions.js file:

Uncaught TypeError: jQuery(...).addClass(...).fancybox is not a function


(Rob Beattie) #3

Thanks Will. So I take it that’s not something I can fix and needs @nimblehost to help with?


(Jonathan Head) #4

To clarify, this error occurs because multiple versions of jQuery are being loaded on the page. Armadillo functions are indeed present and accessible, but are “attached” to a different version of jQuery loaded at the beginning of the page as part of the Stacks plugin (which is superseded by the theme’s version of jQuery, which is loaded at the very bottom of the page).

For other’s who may be encountering a similar issue, you may be able to resolve it by adding this snippet of javascript to the Javascript area of RW’s Code section:

jQuery.noConflict(true);

Hope this helps.


Armadillo causing problems
(Rob Beattie) #5

It certainly helped me. Many thanks @nimblehost for troubleshooting this pesky problem. Blog now proceeding as planned.

Best wishes,

Rob