"Technical issue"

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35827

    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
    #35843

    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
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.