# Help with a .js error?

**URL:** <https://forums.realmacsoftware.com/t/help-with-a-js-error/12574>\
**Category:** RapidWeaver Classic\
**Created:** [February 17, 2017, 9:17am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574 "2017-02-17T09:17:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbeattie](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/robbeattie/32/78_2.png) [@robbeattie](https://forums.realmacsoftware.com/u/robbeattie)\
**Post date:** [February 17, 2017, 9:17am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/1 "2017-02-17T09:17:10Z")

</div>

I’m getting a .js error on this page - [http://www.riverrunning.co.uk](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! 🕶

Many thanks,

Rob

---

<div class="post-metadata">

**Author:** ![willwood](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@willwood](https://forums.realmacsoftware.com/u/willwood)\
**Post date:** [February 17, 2017, 11:14am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/2 "2017-02-17T11:14:09Z")

</div>

Line #50 of your armadilloFunctions.js file:

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

---

<div class="post-metadata">

**Author:** ![robbeattie](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/robbeattie/32/78_2.png) [@robbeattie](https://forums.realmacsoftware.com/u/robbeattie)\
**Post date:** [February 17, 2017, 11:47am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/3 "2017-02-17T11:47:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nimblehost](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/nimblehost/32/94_2.png) [@nimblehost](https://forums.realmacsoftware.com/u/nimblehost)\
**Post date:** [February 21, 2017, 12:36am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/4 "2017-02-21T00:36:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![robbeattie](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/robbeattie/32/78_2.png) [@robbeattie](https://forums.realmacsoftware.com/u/robbeattie)\
**Post date:** [February 21, 2017, 9:06am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/5 "2017-02-21T09:06:02Z")

</div>

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

Best wishes,

Rob

---

<div class="post-metadata">

**Author:** ![bobi151](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bobi151/32/18363_2.png) [@bobi151](https://forums.realmacsoftware.com/u/bobi151)\
**Post date:** [March 23, 2020, 7:55am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/6 "2020-03-23T07:55:29Z")

</div>

I have the same problem and this snippet almost solves the problem. But, when adding the snippet I get a another error instead.

> Uncaught TypeError: $ is not a function

Any idea how this could be solved?

---

<div class="post-metadata">

**Author:** ![bobi151](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bobi151/32/18363_2.png) [@bobi151](https://forums.realmacsoftware.com/u/bobi151)\
**Post date:** [March 24, 2020, 7:41am UTC](https://forums.realmacsoftware.com/t/help-with-a-js-error/12574/7 "2020-03-24T07:41:24Z")

</div>

Update. Managed to sort this problem with a small change to the snippet.

> $= jQuery.noConflict(true);

At least this one does the trick for me.
