We deleted a ticket type defined on a page. The ticket had attendees and it seemed to have been deleted, but we got the following message (for each attendee) in the debug log:
PHP Notice: Undefined variable: post_to_delete in /wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 467
PHP Notice: Trying to get property of non-object in /wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 467
Checking that line in the source code reveals that there is an unset variable used, $post_to_delete, that causes updating of post meta data to fail for all attendees for the deleted ticket.
When listing the attendees for the page, the ticket name for these attendees shows the ticket number followed by “(deleted)”.
Plugins installed: Event Tickets Plus 4.6.2, Event Tickets 4.6.3, Events Calendar 4.6.9, Events Calendar Pro 4.4.21, WooCommerce 3.2.6 and WordPress 4.9.1.