mhmart
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
I had this bug, found the solution and posted it here: https://ww.wp.xz.cn/support/topic/cannot-get-a-ticket-for-event-seems-closed/
The solution I used by adding to functions.php:
add_action('em_ticket_get_post_pre', function($ticket, &$post) {
$ticket->ticket_status = 1;
$post['ticket_status'] = 1;
}, 1, 2);
add_action('em_ticket', function(&$ticket, $ticket_data, $ticket_data2) {
$ticket->ticket_status = 1;
$ticket->end_timestamp = strtotime($ticket->ticket_end);
}, 1, 3);Update: I noticed one difference:
in the database tablewp_em_tickets, the field ‘ticket_status’ was set to ‘0’, and had to be ‘1’. I cannot find the reason for this to happen yet though.
Viewing 4 replies - 1 through 4 (of 4 total)