Support

Home Forums Event Espresso Premium Event Showing One Day Off

Event Showing One Day Off

Posted: January 23, 2018 at 7:50 am


BrascoMarketingDev

January 23, 2018 at 7:50 am

The calendar is showing the event on the correct date, however the event ‘single’ is showing the date one day off. When I try to edit the date of the event, it won’t save the new date. This is currently happening for every event. Any help would be greatly appreciated. (plugin version Version 4.9.55.p)

This is what is in my error log:
[23-Jan-2018 10:17:45 UTC] PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘A valid Event ID is required to use the "ESPRESSO_TICKET_SELECTOR" shortcode.<br />An Event with an ID of "0" could not be found.<br />Please verify that the shortcode added to this post's content includes an "event_id" argument and that it's value corresponds to a valid Event ID.’ in /www/wp-content/plugins/event-espresso-core-reg/core/domain/entities/shortcodes/EspressoTicketSelector.php:82
Stack trace:
#0 /www/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(119): EventEspresso\core\domain\entities\shortcodes\EspressoTicketSelector->processShortcode(Array)
#1 /www/wp-content/plugins/event-espresso-core-reg/core/services/cache/BasicCacheManager.php(96): EventEspresso\core\services\shortcodes\EspressoShortcode->EventEspresso\core\services\shortcodes\{closure}()
#2 /www/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(128): EventE in /www/wp-content/plugins/event-espresso-core-reg/core/domain/entities/shortcodes/EspressoTicketSelector.php on line 82


Josh

  • Support Staff

January 23, 2018 at 8:19 am

Hi BrascoMarketingDev,

So these are actually two issues. With issue one, it sounds like that may be the result of a plugin conflict where the dates will not save. You can follow this troubleshooting guide to rule out a plugin conflict:

https://eventespresso.com/wiki/troubleshooting-checklist/

The fatal error can be easily fixed. You go to edit that page that has the [ESPRESSO_TICKET_SELECTOR] shortcode and either remove the shortcode or add a valid event ID. If your event ID is 12345, your shortcode will be like so:
[ESPRESSO_TICKET_SELECTOR event_id=12345]


BrascoMarketingDev

January 23, 2018 at 8:49 am

Is there any reason you can think of that espresso_event_date() would show a different date/time on the event single than it shows on the calendar? Everything shows correctly on the calendar, it’s only off on the event single php file where espresso_event_date() is called.


BrascoMarketingDev

January 23, 2018 at 8:58 am

It appears to be related to the UTC bug that was mentioned in another thread….


Josh

  • Support Staff

January 23, 2018 at 9:08 am

espresso_event_date() will show a different date and time because it only shows the first associated date of the event. The calendar will show every date time associated with the event.

You could try swapping espresso_event_date() with espresso_list_of_event_dates().


Josh

  • Support Staff

January 23, 2018 at 9:09 am

It appears to be related to the UTC bug that was mentioned in another thread….

Please don’t use UTC timezones. Event Espresso needs a timezone that matches a nearby city. Please see this post for more information:
https://eventespresso.com/2017/08/important-upcoming-changes-dates-times/


BrascoMarketingDev

January 23, 2018 at 9:24 am

Yes, I was able to fix it after reading someone else’s post. Thanks

The support post ‘Event Showing One Day Off’ 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