Support » Plugin: Event Tickets » Latest update breaks Attendee Output (Unknown column ‘wp_posts.ID’)

  • Resolved justlevine


    After updating to Event Tickets 4.10.6, my debug.log is riddled with database errors, and my Event template is no longer showing attendees.

    All of the errors start with WordPress database error Unknown column 'wp_posts.ID' in 'on clause' for query SELECT DISTINCT customdbname_posts.ID FROM customdbname_posts.

    The issue seems to be caused by src\Tribe\Attendee_Repository.php:263.

    ON ( attendee_optout.post_id = wp_posts.ID uses a hardcoded prefix, and instead of wp_posts.ID, it should be {$wpdb->prefix}posts.ID.

    I’ve created a pull request here:

    • This topic was modified 1 year, 11 months ago by justlevine. Reason: formatting
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sky Shabatura


    Hi there,

    Thanks for pointing this out! This will be fixed in an upcoming release.

    Appreciate the feedback!


    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. 🙂

    Courtney 👩🏽‍💻

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Latest update breaks Attendee Output (Unknown column ‘wp_posts.ID’)’ is closed to new replies.