babyboy808 — 2012-10-30T02:20:03-04:00 — #1
I have slideshow plugin installed on a site. It works on every page apart from one and I can't figure out why.
The slider is down the page a bit under the heading Screenshots.
Here is an example of a working page
Here is an example of the page that is not working.
Chrome inspector says it:
Uncaught TypeError: Object [object Object] has no method 'lightBox'
Anybody have a few minutes to have a look?
pullo — 2012-10-30T03:52:32-04:00 — #2
In the page that doesn't work you are including jQuery twice.
Once in line 4
and once in line 94:
Remove the second version and this will solve your problem.
BTW, the reason you are seeing the error you posted is that this:
So, within this file, you first load jQuery, then you load the lightbox plugin which adds the lightbox method to the $ function.
Then you load the second version of jQuery, which replaces the $ function - and the lightbox method with it.
babyboy808 — 2012-10-31T20:09:13-04:00 — #3
Pullo, thanks a million mate! Solved it perfectly.