Closed ncmnancy closed 9 months ago
Thanks for bringing this to our attention @ncmnancy, I was able to replicate this issue. For some reason the "JOIN" logic is missing from The Events Calendar v6+ but works in V5.
Specifically this code isn't running in V6 installations - https://github.com/strangerstudios/pmpro-events/blob/dev/modules/the-events-calendar.php#L29-L34
I am working through documentation on their end to see if anything has changed.
You're welcome! Thanks for digging into it. Please keep me posted.
I am in talks with one of the developers from The Events Calendar, they say that the latest version may resolve this issue. Please let me know if updating helps.
Thank you for the update!
I've updated The Events Calendar to the latest version. Unfortunately the bug persists.
@ncmnancy are you still facing this issue? I handed this off to The Events Calendar team to resolve.
Updating this, while the JOIN and SQL queries are working there are still issues when AJAX is involved in loading the calendar view (monthly event view etc).
We are working with Tribe / The Events Calendar to get to the bottom of this.
It looks like this issue has been resolved. I am going to close this issue, if you are still experiencing the issue please let us know.
After migrating events to The Events Calendar 6.0.1.1, no events are displayed on the front end. This applies to events available to all users.
Query Monitor shows that seven database errors are occurring. They all say "Unknown column 'pmpro_mp.membership_id' in 'where clause'". I did more troubleshooting and found that the JOIN clause linking
wp_pmpro_memberships_pages
to other tables is missing from the query assembled in modules/the-events-calendar.php inpmpro_events_tribe_events_repository_handle_posts()
.When I experimented in the database and added the missing JOIN clause to one of the queries that had failed, it worked. Here's the query that worked.
This site has a lot of plugins. I disabled nearly all of them and the issue persisted.
Environment/WP/Server info: