Date picker still not working
-
Hello Bolorino,
I’ve just installed Theatre WP to build a site for a performing theatre company.
Your plugin is a nice tool, but the date picket is not working, as your described 2 years ago… :/Thank you for your help.
Jean-Bernard
-
Hi CorwinStar. Thanks for getting in touch.
Let me take a look. Last time I checked in a live site with the plugin installed the date picker issue was solved.
I’ll check and back to you.🙂
Mmmm. It is working for me right now in provisionaldanza.com.
Would you please give me some details?
Wich version of WordPress are you using?
What is your default site language?
Is there some error or just the date picker in “performances“ not displaying on click?Would be possible to share a link of the site?
Thanks!
Hi Bolorino,
Thank you for caring so quickly.
WP is 4.4.2. French is the default language. Theatre WP is 0.59.
Some news:
– date picker is displaying fine. But when selecting a date, it does nothing else but add a # at the end on the current URL.
– only the ‘date’ field is impacted. ‘hour’ field works as expected.
– manually typing the date in this format 01-April-2016 saves the date in the db, thus it is displayed in the front-end (like in this example: http://site-chimeres.jbhuet.com/representation/lepopee-prend-large/ – this site is in an early stage of dev, so…), but the ‘date’ field remains empty on the admin side.
– I did some testing by disabling all other plugin and changing theme (currently Simone): the problem remains.Let me know if you want me to perform more testing, or if you need more info.
Hi 🙂
Well, I’ve found the same behavior you describe in my development environment (Vagrant), but not in production sites. Definitely annoying :-\Trying to debug right now.
It seems there is a problem with some empty value into the javascript code related to datepicker. I’m cleaning up the needed javascript load in the WordPress admin side as much as I can, but it isn’t resolved yet. And I really don’t know why is working fine in my production site while it doesn’t in development.The datepicker jquery-plugin is loaded by WordPress by default, but no the timepicker one.
My experience with jquery/javascript is limited. This is the error I get, in case you have more experience than me, or somebody can help:
Uncaught TypeError: Cannot read property 'length' of null a.extend.formatDate @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:31 a.extend._formatDate @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:32 a.extend._selectDay @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:31 b.selectDay @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:31 m.event.dispatch @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:4 r.handle @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-datepicker&ve…:4
Hi there.
It seems solved now!
The problem was the conversion of date formats between WordPress and datepicker.It is working now, but only when using some of the WordPress default date formats.
In case you use your own date format in preferences, (“j \d\e F \d\e Y” for instance as I did for Spanish), the datepicker works but the date isn’t displayed into the field. I’ll look for this later.
I’m commiting the changes right now to update the plugin, along other issues fixed.
Please, confirm if the problem is solved.
Thanks again. 🙂Hello Bolorino,
Thank you for your help. I upgraded to v0.60b, but unfortunately, it’s worst: now neither date picker nor hour picker will show up. As if they were disabled… ?
Manual entry can be done, but with English date format (mm/dd/yyyy) but is still not displaying when saved.
Please let me know if you need more information or details.Ooopps. It seems a problem with a file not updated.
You can grab this file directly from repo:
https://plugins.svn.wordpress.org/theatre-wp/tags/0.60b/js/twp.jsand replace it in the js folder of the plugin.
Or uninstall and install again. If you don’t check the option to remove data on uninstall in the plugin setup, you’ll keep the plugin data.
Please, tell me if that fixes the problem.
Mmm… De-install and re-install plugin: still the same problem.. :/
Wow. That’s strange.
It would be possible to replace the file in
/wp-content/plugins/theatrewp/js/twp.jswith the one from the repo:
https://plugins.svn.wordpress.org/theatre-wp/tags/0.60b/js/twp.jsIf this fixes the problem I’ll run a new update right now.
:-\
Don’t forget to reload/clear cache of your browser to ensure the new javascript file is loaded, instead of a cached version.
Just saying 🙂
This did the trick! Works fine now! Great thanks!
😀Solved!
Super! Thanks for your help 🙂
HI,
i am trying to use this Date time picker in my Website…
but it is not working .
It is showing me a text field instead of Calendar,
but when i change my theme to default like twenty fifteen then it works.
Can you kindly tell me that what should i add or change in my theme to make it working in it ?
and
about my Website (currently it is under maintenance as my Client don’t want to make it live till it is ready)
thanks….
- The topic ‘Date picker still not working’ is closed to new replies.