- This topic has 3 replies, 3 voices, and was last updated 10 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – lightBox is not a function error in custom plugin pages
Hi, in Firefox web developer web console I’m seeing error,
TypeError: $(...).find(...).lightBox
is not a function
in one of my custom plugin pages. No big deal I don’t sell products or use lightbox on that page but it does seem to disable my “timed event” dropdowns (which I need).
HTML source reveals the script libraries load like this,
jQuery 1.8.0 first, then eStore scripts, then WP loads jQuery 1.7.2 (again I know I’ve got an ugly custom plug-in). The error points to
‘$(‘[class*=eStore]’).find(‘a[rel*=lightbox]’).lightBox({ ‘
I’ve removed the first jQuery load but now most of my page won’t function. Then I try putting the following script right after my first jQuery script but no luck.
<script>jQuery.noConflict();</script>
Any ideas? I’m using an old version of WP 3.4 hence the old version of jQuery.
Hi, please provide a link to the page in question so I can take a look.
Also, your WordPress version is very old. You should definitely upgrade it to the latest (at least for security reasons). All of our plugins are always kept upto date to work with the latest version of WordPress.
Hi, thanks for the reply but we can mark this as answered (unfortunately only registered users can access the page so I don’t want to trouble you further). The error is definitely due to my own plugin, which I’m rewriting, and if I find an answer will post back. Thanks for replying.
Not a problem. Just reply back here later if you need.