Hi,
I sent this a few days ago through the contact form but I´m not sure if you received it?
I just received an automated email from WordPress “your site is experiencing a technical issue”, explaining that there is a problem with plugin Event Organiser and a link to where it came from:
/wp-admin/edit.php?post_type=event&page=bookings&action=edit&booking_id=969
When I visit this page I see this error:
Fatal error: Uncaught Exception: Error in formating DateTime object. Expected DateTime, but instead given boolean in /wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php:31 Stack trace: #0 /wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php(164): eo_format_datetime(false, ‘j F, Y’) #1 /wp-content/plugins/event-organiser-pro/admin/bookings.php(789): eo_format_event_occurrence(954, 111) #2 [internal function]: EventOrganiser_Bookings_Page->booking_metabox(Object(WP_Post), Array) #3 /wp-admin/includes/template.php(1304): uopz_call_user_func(Array, Object(WP_Post), Array) #4 /wp-content/plugins/event-organiser-pro/admin/bookings.php(585): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post)) #5 /wp-content/plugins/event-organiser-pro/admin/bookings.php(557): EventOrganiser_Bookings_Page->display_booki in /wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php on line 31
there is also this message/notification “The occurrence date for which this booking was made no longer exists.”
My guess is that this is because the date for this booking has been deleted?
(events are handles by different authors)
How can I best solve this, I´m using the pro 2.x beta version)?
Thanks!
AK
Yes, if the event or date is deleted, then you will get that error. I’ll fix this in the next update, but essentially it would involve wrapping the line in admin/bookings.php:
$date = eo_format_event_occurrence( $event_id, $occurrence_id );
in a try{ ... } catch{ ... }
statement.
Stephen Harris