Forums › Forums › Search & Filter Pro › Uncaught TypeError: t.datepicker is not a function
- This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago by
Anonymous.
-
Anonymous(Private) February 23, 2017 at 6:48 pm #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,
JayTrevor(Private) February 23, 2017 at 7:07 pm #92528Can 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(Private) February 23, 2017 at 7:23 pm #92533Wow! 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 -
AuthorPosts