• Hi!

    When we create a new event with bookings enabled we get a white screen with this error after publishing:

    Warning: Undefined array key “ticket_required” in /var/www/XXX.se/public_html/wp-content/plugins/events-manager/classes/em-ticket.php on line 500

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/ba-trafikskola.se/public_html/wp-content/plugins/events-manager/classes/em-ticket.php:500) in /var/www/XXX.se/public_html/wp-admin/post.php on line 231

    The event is created anyways but it seems a bit buggy since the slots avaliable resets to 10 or 0 if we edit the event and so on….So any ideas?? If we turn bookings to off it works fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I will report this to the plugin owner. For now, you can fix this by changing line 500 of wp-content/plugins/events-manager/classes/em-ticket.php from this:

            } elseif ( $post['ticket_required'] === 'default' && $this->ticket_parent ) {

    To this:

            } elseif ( !empty($post['ticket_required']) && $post['ticket_required'] === 'default' && $this->ticket_parent ) {
    Thread Starter witdesign72

    (@witdesign72)

    Excellent! Works just fine now.

    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined array key “ticket_required”’ is closed to new replies.