-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paginated custom post type results fail to load using v1.14.10 and onwards #2915
Comments
Thanks for your quick reply. I've just checked out that PR, but unfortunately the error is still generated upon request. |
@mensch we've pushed up additional commits to the #2882 branch over the past few days. Can you check out the latest and try again? You might also need a new version of "QL Events" (https://github.com/the-events-calendar/ql-events). (@kidunot89, can you confirm?) |
@jasonbahl Thanks for the update. Just checked out the latest changes of that branch and my issue seems to be resolved! I'm not using QL Events by the way. |
@mensch sweet! Thanks for confirming. It's been merged and released. Will close this issue. |
Description
I have a WordPress installation running WP GraphQL and The Events Calendar, using GraphQL queries to populate a paginated listing of events. This was working well until the release of v1.14.10, now only the initial query succeeds and when the next cursor is queried it fails with the following error output in the debug.log:
A portion of this is also outputted on the GraphQL endpoint.
It seems the generated SQL query is requesting
mt0.meta_value
, but that table is never defined (mt1
is). The issue probably stems from the recent changes to PostObjectCursor in this merged pull request, as assigning aliases to the metadata tables is handled insrc/Data/Cursor/PostObjectCursor.php
around line 229.As
tribe_events
is a post type introduced by The Events Calendar, I've amended its configuration as follows:I've added the entire PHP file containing the relevant GraphQL actions and filter. I'm not sure what other information would be required to debug, but I'd be happy to provide it.
Steps to reproduce
But a simpler paginated query fails as well.
3. The query fails with a fatal error preventing any meaningful GraphQL output.
Additional context
No response
WPGraphQL Version
1.14.10 and higher
WordPress Version
6.3
PHP Version
8.0.3
Additional enviornment details
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL.
The text was updated successfully, but these errors were encountered: