Forums Forums Search & Filter Pro Data Range is not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #266941

    Hello,

    I just purchased the plugin and tried to make my first search form.

    I am getting the datepicker is not function error, very strange :

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

    The site is not live and it’s under development : http://zlostor.orion.com.mk/

    And another thing, when the results are displayed, they are list of events that were happening in last 7 years, together with map of the location where they happened. There will be a map on the top of the search results and I already purchased WP Google Maps Pro plugin, is there a way I can handle a XML with results query to the map so the markers can appear on it? I will need just name, longitude, langitude and permalink to be sent to the map (they are all in the post as custom fields) as XML/CSV or whatever, is there some possibility with your plugin?

    Best wishes, Klime.

    Trevor
    #266990

    Your site should be loading the datepicker library:

    http://zlostor.orion.com.mk/wp-includes/js/jquery/ui/datepicker.min.js

    But I do not see it loading?

    Do you have an optimizer plugin that might be dequeuing it? Or are you manually enqueuing WordPress assets, and maybe need to enqueue this one?

    I have used that maps plugin some time ago. What I did was to run an if have_posts while … loop fetching the matching Post IDs of our search (no pagination, all posts).

    For each Post ID I made a map, for which WP Google Maps Pro gives a Map ID. I store that Map ID in a custom field in the post that matches the map. Then, in the loop, I build an array with the matching Map IDs in, and use that after the while has finished to make a mashup shortcode of all the IDs, and then show the map.

    Anonymous
    #267134

    Hello Trevor,

    I have added a link to the script in my header : https://cdnjs.cloudflare.com/ajax/libs/datepicker/1.0.10/datepicker.min.js

    But again I am getting this in console :

    Uncaught TypeError: Cannot read property ‘extend’ of undefined
    at datepicker.min.js:10
    at datepicker.min.js:10
    at datepicker.min.js:10

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

    Did you had any experience with this kind of errors before?

    Best wishes, Klime.

    Trevor
    #267136

    That may be the wrong version. WordPress itself ships with v1.11.4, so there should be no need to load from an external CDN.

    Trevor
    #267138

    As an afterthought, you might have other necessary libraries missing. How come your WordPress is not loading these all?

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