Forums Forums Search & Filter Pro Uncaught TypeError: t.datepicker is not a function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #92520

    Hello again!

    I’ve finished pretty much everything with my search / filter forms. This plugin has saved me many hours of work! I’ll certainly be using it again in the future.

    One problem I’m having as of this morning though, which is quite odd as it was working the other day.
    The date range field is not rendering on one of my search forms. It throws the following error in the console log:

    Uncaught TypeError: t.datepicker is not a function
    at HTMLInputElement.<anonymous> (search-filter-build.min.js?ver=2.3.2:2)
    at Function.each (jquery.js?ver=1.12.4:1)
    at a.fn.init.each (jquery.js?ver=1.12.4:1)
    at HTMLFormElement.addDatePickers (search-filter-build.min.js?ver=2.3.2:2)
    at HTMLFormElement.init (search-filter-build.min.js?ver=2.3.2:2)
    at HTMLFormElement.<anonymous> (search-filter-build.min.js?ver=2.3.2:2)
    at Function.each (jquery.js?ver=1.12.4:1)
    at a.fn.init.each (jquery.js?ver=1.12.4:1)
    at a.fn.init.e.exports [as searchAndFilter] (search-filter-build.min.js?ver=2.3.2:1)
    at HTMLDocument.<anonymous> (search-filter-build.min.js?ver=2.3.2:1)

    What might be the cause of this problem? And what would be the best solution here?

    Cheers,
    Jay

    Trevor
    #92528

    Can you provide me with a url for the search page? It looks like a javascript conflict with the theme or another plugin or some code you may have added, but I may be able to see what. Most likely cause is an older version of jQuery being loaded than the one that ships with WordPress (1.12.4 I believe) – you may be able to see by looking at the page’s HTML source code from your browser.

    Anonymous
    #92533

    Wow! Thanks once again for the superb support!

    It was exactly as you mentioned. Was simply due to a custom scrollbar that was implemented. Have changed the load order of some assets and it’s all good to go now
    Quite odd that it was working up until this morning though, as it was setup several weeks ago 😉

    Cheers,
    Jay

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