Forums › Forums › Search & Filter Pro › searchAndFilter error
- This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by
Ross.
-
Ross Moderator(Private) January 5, 2016 at 8:36 pm #33428
Hi there
The only time this error has come up in the past is when people have been incorrectly loading a second copy of jQuery in their sites.
Check to see if you are doing anything unusual like that or if a plugin is doing this.
Any site, should only ever have one copy of jQuery in its source.
Thanks
Anonymous(Private) January 5, 2016 at 9:35 pm #33430Hi,
the site did load two copies of jquery. So i removed the one i manually added in the theme, which was:
<script src=”//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js”></script>
Now i just loads this:
http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js?ver=2.0.3
however, the issue and the error message still remains.
regards,
AdriaanRoss Moderator(Private) January 5, 2016 at 9:57 pm #33431Hi Adriaan
We only officially support the packaged version that comes with WP, so you will have to figure out what is going wrong.
However, I believe the issue will be the way you are loading your copy of the JS.
i.e, perhaps its not loaded at the top of the document, but in the footer, or perhaps dependencies are not working correctly with your copy – in WP, a developer just needs to add a
jquerydependency when loading js files via plugins, and WP figures out where to place scripts, such as S&F.If you mess with this dependency system then you will likely break other plugins that are using JS on your site as well as this one.
Thanks
-
AuthorPosts