Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Lightbox Conflict – Not Working
Tagged: eStore lightbox, lightbox error, lightbox thumbnail
- This topic has 5 replies, 2 voices, and was last updated 11 years, 3 months ago by vitamin.
-
AuthorPosts
-
August 5, 2013 at 5:41 pm #9433vitaminMember
Hello, I have a site in which a conflict between lightbox’s just started…seems to be synonymous with the latest WordPress update but I don’t understand how.
Can someone take a look and see if anything pops out at them? The product thumbnail is ligtbox activated as well as a lightbox on image “important summer shipping” in the right sidebar.
It would be great to get some input towards a solution. Thanks!
the page in question is: [http://sheanel.com/shop/shea-butter/]
August 6, 2013 at 1:29 am #56950wpCommerceModeratorHi, the page contains the following error:
Uncaught TypeError: Object [object Object] has no method 'lightBox'
You have a script on your server hardcoing jQuery 1.7.2.
[http://sheanel.com/files/plug/lightbox/js/jquery.min.js]
This is conflicting with the currrent version of jQuery included by WordPress (1.10.2).
[http://sheanel.com/wp-includes/js/jquery/jquery.js?ver=1.10.2]
Please note that there can only be one copy of jQuery on a page for all the elements to function properly. Otherwise there will be JavaScript errors and many elements will be broken.
You can also check for JavaScript errors by yourself. Please see this post which has some good resources for debugging JavaScript errors:
https://support.tipsandtricks-hq.com/forums/topic/debugging-javascript-errors-on-your-site
August 6, 2013 at 12:03 pm #56951vitaminMemberHmmm…thats the way I originally had it…before the WP upgrade.
I have again removed the call for jQuery 1.7.2 [http://sheanel.com/files/plug/lightbox/js/jquery.min.js] and now get THIS message:
uncaught exception: The jQuery version that was loaded is too old. Lightbox Evolution requires jQuery 1.4+
Grrrrr… I don’t see where in the source code that the page in question is attempting to load anything earlier than 1.4 ???
Thanks for the look.
August 6, 2013 at 9:59 pm #56952vitaminMemberI should note, I just loaded an earlier version of jQuery (v1.6.1) and all lightbox functions worked.
Seems like its specific to jQuery 1.10.2.
hmmmm….
(I put the call to load 1.10.2 back up for testing…no lightbox effects work)
August 7, 2013 at 7:12 am #56953wpCommerceModeratorHi, eStore lightbox doesn’t have any issue with jQuery 1.10.2 (we have already tested it). Can you please remove any reference to the Lightbox Evolution script from that page and see how it goes?
August 7, 2013 at 7:23 pm #56954vitaminMemberThanks for reply. Once reference to Lightbox Evolution was removed, eStore lightbox worked fine.
Thought the failure of lightbox to fire was because two programs (eStore + Lightbox Evolution) were using the lightbox function and therefore wasn’t specific to Lightbox Evolution. Still not sure what the cause is.
-
AuthorPosts
- You must be logged in to reply to this topic.