-
Notifications
You must be signed in to change notification settings - Fork 7
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
events
query returns no results
#59
Comments
events
query returns no results
To add to this: This issue starts occurring on TEC version 6.0.4. Previous versions return results on the |
This is dovetailing into an issue with routing to tribe-events_single pages as well. Event posts would return a 404, with the same SQL error that @brittonwalker pointed out in the After some digging, this line is the culprit:
I noticed in the PR #58 that you remove the My suggestion is one of the following, but would need testing:
EDIT: Completely scratch that. I took another look. |
@kidunot89 do you have any thoughts on what we can do to work around this? As it is, we can't use ql-events without forking the events calendar plugin since the single event routes are broken too now. |
@kidunot89 any updates? This breaks both the queries and single event pages, even with ql-events 0.3.1. If we can't get this to work in GraphQL, we're going to have to figure out an alternative to TEC Pro for event management |
@hcavanaugh You have to be on at least WPGraphQL v1.16.0 or higher for the QL Events v0.3.1 to work as expected. Can you confirm your on WPGraphQL v1.16.0 or higher? |
@kidunot89 I still had to make the modification @hcavanaugh mentioned above to get it to work with WPGraphQL 1.16 last I tried. |
@jmotes @kidunot89 I was able to get event queries and event single pages working after updating to wpgraphql 1.16, and updating TEC to 6.2.2.1 |
@hcavanaugh Nice! TEC v6.2.1 was what I tested against last month. I just updated to today's release (v6.2.3) and it's working great for me as well. |
Good to see this is working with v0.3.1 |
I've just installed the plugin and when I query using
events
, I always get an empty array even though I've created a few events all filled out to test. If I use theevent
connection and query using the id, it works as expected. Only this connection doesn't seem to work.Here are my plugins and configurations:
QL Events
Version 0.0.1
The Events Calendar
Version 6.1.3
The Events Calendar Pro
Version 6.1.1
WPGraphQL
Version 1.14.9
PHP
Version 8.1.18
Mysql
Version 5.7
WordPress
Version 6.2.2
I've tried running a simple query like and many like it with no change in returning anything other than an empty array.
When I have debugging on and run this query I get this in
debug.log
In the Graphql IDE, I get this message:
The text was updated successfully, but these errors were encountered: