Support

Home Forums Event Espresso Premium Expired events are still showing on calendar

Expired events are still showing on calendar

Posted: August 2, 2021 at 1:38 pm


nafujiwara

August 2, 2021 at 1:38 pm

Hi, I don’t know what changed but some events that are expired are still showing on the calendar. My event from 2 days ago doesn’t show, but last nights event, which shows as expired in my admin dashboard, is showing on the calendar. Any reason why this is happening?


Tony

  • Support Staff

August 2, 2021 at 2:40 pm

Hi there,

Are you using any other plugins that deal with dates at all?

Usually, when something like this happens it is because another plugin is calling date_default_timezone_set() which then throws off the DateTime values on the request.


nafujiwara

August 2, 2021 at 3:00 pm

No, I’ve tried deactivating all plugins that are not related to EE with no luck. I just made a little progress though. The event will disappear if I change the end date of the ticket sales to anything at least a day before the event. But this isnt a solution as I still need to sell tickets on the day of the event. But maybe this discovery can help with the solution


Tony

  • Support Staff

August 3, 2021 at 4:56 am

So to be honest, that would still lead to the same issue as mentioned above.

If EE builds a query to do something like:

Select events between 01/08/2021 00:00:01 and 01/09/2021 00:00:01

But then in the background, your server’s timezone has been changed to be +12 or +24 hours it throws all of the event queries out by roughly 24 hours (including those to check if the event is expired), which leads to the issue you’re reporting. I can’t say for sure but just nothing that it sounds like the cause.

Right now it looks like the expired events have been correctly removed from the calendar but I’m guessing you have since changed the dates to force that event to be removed?


nafujiwara

August 5, 2021 at 4:49 pm

Yes to remove the events I just edit their end times. I have disabled all plugins except EE related ones and still have the issue. Where else would I look to find a conflicting setting?


Tony

  • Support Staff

August 6, 2021 at 5:03 am

It could be something set in the theme.

I’d use the WP Health Check & Troubleshooting plugin:

https://wordpress.org/plugins/health-check/

Enable the plugin, go to Tools -> Site Health -> Troubleshooting -> Enable Troubleshooting.

That will deactivate all plugins and switch you to to a default them, but only for you, the logged in admin.

Then in the admin bar go to Manage Active plugins, enable Event Espresso and the Calendar add-on, then check the calendar again.

Same issue?


nafujiwara

August 6, 2021 at 12:43 pm

The previous day is still showing with only EE and calendar enabled in troubleshooting. So that rules out the theme and plug-ins. I just upgraded to EE4 from EE3 and 3 was doing the same thing. It didn’t always do this it happened about half way through last year. Needless to say but I should point out I’m running the newest PHP and wordpress updates.

The support post ‘Expired events are still showing on calendar’ 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