Latest update breaks Attendee Output (Unknown column ‘wp_posts.ID’)
-
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 ofwp_posts.ID
, it should be{$wpdb->prefix}posts.ID
.I’ve created a pull request here: https://github.com/moderntribe/event-tickets/pull/1279
Viewing 2 replies - 1 through 2 (of 2 total)
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.