Support

Home Forums Event Espresso Premium Datetime issue

Datetime issue

Posted: October 1, 2015 at 6:31 am

Viewing 12 reply threads


MR DECLAN J MAIR

October 1, 2015 at 6:31 am

Hello,

I’m having an issue with datetimes on events. Similar to one had before (https://eventespresso.com/topic/changing-datetime-of-a-live-event/)

This is what has been said to me: “When I add an event it won’t save when I want to stop selling tickets and also the dates of the event.”

Having a look, on the date times, if i use and click a date on the calendar the times disappear. I selected the dated on a test event and when I saved it reverted to now. If i manually type the dates it seems ok though?!?!?

To confirm these are for new events.

Thanks in advance.


Lorenzo Orlando Caum

  • Support Staff

October 1, 2015 at 10:14 am

Hi, the following sounds like there is a conflict occurring:

Having a look, on the date times, if i use and click a date on the calendar the times disappear.

I double-checked this on a testing site using the current software:

http://cl.ly/0I0L0o280U0i

Have you tried temporarily deactivating any new plugins that were recently installed?


Lorenzo


MR DECLAN J MAIR

October 1, 2015 at 12:09 pm

Hi Lorenzo…
That didn’t work I’m afraid… Out of interest in your video I have never seen the time selector bit. We’ve always had to manually modify. Attached a screenshot with only the EE plugin active.


Lorenzo Orlando Caum

  • Support Staff

October 1, 2015 at 1:04 pm

Hi Declan,

That does not look like our date time selector so this shares some insight on your earlier questions and concerns.

Did you deactivate all plugins and reactivate only Event Espresso and re-test?

A plugin with a date or calendar option is likely interfering here (e.g an appointment or booking plugin). Is anything like that running on your site?


Lorenzo


MR DECLAN J MAIR

October 1, 2015 at 3:49 pm

Hi Lorenzo, I deactivated everything but EE… done that just now though and still the same.
As far as I’m aware, nothing else contains date blocks or calendars.
Do you want login details?


Josh

  • Support Staff

October 1, 2015 at 5:26 pm

Your active WordPress theme is likely swapping in its calendar datepicker. Does the issue go away if you switch to the default theme?


MR DECLAN J MAIR

October 2, 2015 at 5:18 am

yep… the date picker was fine when reverted to the default theme. Wasn’t aware the theme had a datepicker!?!? How do I go about fixing this?


MR DECLAN J MAIR

October 5, 2015 at 7:12 am

Hello… sorry to nag re this….


Josh

  • Support Staff

October 5, 2015 at 1:22 pm

You find the code in the theme that adds the datepicker script. If you’re not using it anywhere else, it might just work to comment out the code that adds the datepicker script. Or, you wrap it in a conditional so it only loads where it’s needed. The theme author may be able to help you target the code that adds the theme’s datepicker script.


MR DECLAN J MAIR

October 6, 2015 at 6:17 am

Hi Josh. Was there an issue with the site this morning? I kept getting logged out!

I’ve gone through the theme files and deleted any reference to the datepicker and time picker. Looking at chrome developer tools its still calling for files that ive deleted but its still getting them?!?!
Sorry this is a bit over my head. Can you assist or point me in the direction? Needing this resolved asap now to get new events listed.

Thanks in advance.
Declan


Tony

  • Support Staff

October 6, 2015 at 6:59 am

Was there an issue with the site this morning? I kept getting logged out!

Yes, it should be fixed now.

I’ve gone through the theme files and deleted any reference to the datepicker and time picker. Looking at chrome developer tools its still calling for files that ive deleted but its still getting them?!?!

Within your theme files search for ‘datepicker’.

You should find a call that starts with either:

wp_register_script

or

wp_enqueue_script

Comments those out, refresh the event editor and see if the correct datepicker for EE loads.


MR DECLAN J MAIR

October 6, 2015 at 7:24 am

Hi Tony.
THANK YOU! we are now working as we should be. Again I was pulling my hair out with this one!

Warm Regards,
Declan


Tony

  • Support Staff

October 6, 2015 at 7:36 am

Ok that gets you up and running, but note that anywhere else that the theme is execpting to use the datepicker function may not work.

How much of a problem that is depends if you use the themes datepicker function (I’m guessing not by your response above) but its something to be aware of.

The other solution is to remove the themes datepicker only within the EE pages. To do this you need to create a custom plugin, which checks if you are within the event editor, then re-register the themes version of the datepicker and continue using EE’s. However that requires digging deeper into the theme and may be unnecessary for your use case.

Either way I’m glad its now working 🙂

Viewing 12 reply threads

The support post ‘Datetime issue’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso