Forums › Forums › Search & Filter Pro › Date fild not working in Firefox
- This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by
Trevor.
-
Anonymous(Private) August 3, 2016 at 2:28 am #53191
Hi there, i just bought the pro version of your plugin because I read your reply at https://wordpress.org/support/topic/problem-with-date-field-and-firefox which says that the Pro version has a jQuery date picker which works cross browser – this is not the case.
Can you please advise or provide a fix otherwise I would like to request a refund.
the page I have added it to is http://dev.busyatwork.com.au/category/apprenticeships/ (sidebar)
Trevor(Private) August 3, 2016 at 8:04 am #53215Good Morning Nicole
From your post(s) it comes over that you are sure that the issue lies with our plugin, and yet what you see is circumstantial. I like to take the support contact as an opportunity to add to the user’s knowledge of troubleshooting, so please bear with me.
When a javascript element does not work, best to open the page in chrome, open the Inspector (Ctrl + Shift + I) and look at the console tab. In your case it says this:
search-filter-build.min.js?ver=2.2.0:1 Uncaught TypeError: t.datepicker is not a functionWhat this means is that the jQuery we use to load (in this case the datepicker) has been overwritten by another plugin, the theme, or some other code.
What I then do is to open the page source (in Chrome this us Ctrl + U) and search (Ctrl + F) for
jquery.Note that period at the end of jquery.Lines 48 and 49 have the standard WordPress loaded lines:
<script type='text/javascript' src='http://dev.busyatwork.com.au/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> <script type='text/javascript' src='http://dev.busyatwork.com.au/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>But, in lines 50-54 I see that a plugin called
download managerloads some, and one of these is this (line 54):<script type='text/javascript' src='http://dev.busyatwork.com.au/wp-content/plugins/download-manager/assets/js/chosen.jquery.min.js?ver=4.5.3'></script>But, on line 60, this from our plugin:
<script type='text/javascript' src='http://dev.busyatwork.com.au/wp-content/plugins/search-filter-pro/public/assets/js/chosen.jquery.min.js?ver=2.2.0'></script>On line 410 is this:
<script src="http://dev.busyatwork.com.au/wp-content/themes/busyatwork/bower_components/jquery/dist/jquery.js"></script>This is your theme also loading jQuery. Themes should not do this, but it appears to be. Not good practice.
Line 413 your theme then loads this:
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>Same issue. These were the files that WordPress used to load prior to WP4.5
Then, from line 427 onwards, I see Contact Form 7 loading datepicker jquery files.
A can of worms. How to resolve? To test, disable some plugins, and I am guessing that Contact Form 7 would be the first to try. Once we have narrowed down where the problem lies, then we can move forwards.
-
AuthorPosts