Deleting ticket for a page generated PHP warning for undefined variable

Home Forums Ticket Products Event Tickets Plus Deleting ticket for a page generated PHP warning for undefined variable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1426906
    Andras
    Participant

    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.

    #1428244
    Cliff
    Member

    Thanks so much for that detailed report, Andras.

    I looked through our plugin history and this problem has existed since Event Tickets Plus version 4.5

    I filed this bug with our developers and marked this thread as Pending Fix, which means it should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.

    I apologize for this issue and appreciate your understanding and patience.

    #1491612

    Hi There!

    Just wanted to share with you that a new release of our plugins is out, including a fix for this issue 🙂

    Find out more about this release —> https://theeventscalendar.com/maintenance-release-week-25-march-2018/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Jaime

    #1512377
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Deleting ticket for a page generated PHP warning for undefined variable’ is closed to new replies.