Forums Forums Search & Filter Pro searchAndFilter error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #33427

    Hi,

    my searchbar does not work. When i open the page and inspect the element, chrome returns the following error

    Uncaught TypeError: $(…).searchAndFilter is not a function.

    Seems this breaks the search all to together

    Ross Moderator
    #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
    #33430

    Hi,

    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,
    Adriaan

    Ross Moderator
    #33431

    Hi 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 jquery dependency 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

Viewing 4 posts - 1 through 4 (of 4 total)