-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
No Form Fields Available when Building with Gatsby #449
Comments
Thanks for reporting this @pseelinger ! Please take a look at the debugging steps mentioned in this comment: #448 (comment) While idk if the issues are related, what is related is how Gatsby hides all the pertinent debug information. Hopefully those logs should be able to point to whatever is tripping Gatsby up 🤞 |
Thanks for the quick response @justlevine I've attached my two queries below using the debug steps from Gatsby. The backend query does work if I hit it from GraphQL playground. I'll keep looking into this, but maybe this note is relevant?
|
What versions (of both WPGraphQL and WPGraphQL for GF) were the last to work in Gatsby. If there's backend error, then that means the issue is probably with WPGatsby (or gatsby-source-wordpress) automagical transformations. Hoping that narrowing down the version diff will point to an obvious conflict.
I'm hoping that for the sake of all this debugging you've disabled all WordPress plugins/custom code except for WPGraphQL, WPGraphQL for GF, and WPGatsby. So it shouldn't be a problem ;) |
Form fields appear using WPGraphQL 1.31.1 with WPGraphQL for Gravity Forms 0.12.6.1, as well with any version of WP GraphQL from 1.26. I only start to see this after hitting 0.13.0 on WPGraphQL for Gravity Forms. I tried a couple different combinations with 0.13.0.1 and got the same issue. I'm also aware gatsby-source-wordpress hasn't gotten significant updates in a while and might be the real source of the issue as this plugin appears to be outputting data correctly to everything else.
Oh definitely. I have a separate repo set up only with those plugins to reproduce the issue. My thought was maybe there was a conflict in Gravity Forms definitions, but looking through the types in the two queries I posted here I don't see any. |
This sadly (but unsurprisingly) tracks, as Also adds context to #448 , which seems to have been introduced in the same timeframe involving a similarly-refactored ConnectionResolver. Next step is figuring out what the actual source of the issue is (really hard to debug anything related to gatsby, especially without a particular error message to look at), and only then will I be able to say if this is something we can fix on our side or if WPGatsby has finally EOLd. Any chance you have something in you WordPress |
So nothing in the debug log other than an 8.3 warning about Gatsby's action monitor, which I already tested fixing and doesn't seem to have an effect. That is until I turned on GRAPHQL_DEBUG. After turning that on I get two things:
This reminds me I probably should have mentioned this is a roots.io Bedrock WordPress setup. I don't think that would have any effect, but I should have mentioned it before. |
Description
Using GraphQL IDE inside the CMS:


Using GraphiQL during gatsby develop
Since upgrading to v0.13.0, form fields return from the GraphQL endpoint fine in the admin, but using gatsby-source-wordpress, any attempt to fetch formFields returns an empty array. I tried directly hitting my GraphQL endpoint using Httpie to make sure this wasn't an authentication issue, and it returns the fields just fine.
Steps to reproduce
Install the plugins below and test the following queries. The frontend of the site should use Gatsby with gatsby-source-wordpress installed:
Backend Query:
Frontend Query:
Additional context
Tested this with just WPGraphQL, WP Gatsby, and WP GraphQL for Gravity Forms activated on the site.
Plugin Version
0.13.0.1
Gravity Forms Version
2.9.2
WordPress Version
6.7.1
WPGraphQL Version
1.31.1
Additional enviornmental details
PHP version: 8.3.16
WP Gatsby: 2.3.3
gatsby-source-wordpress: 7.14.0
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for Gravity Forms, WPGraphQL, and WPGraphQL for Gravity Forms
The text was updated successfully, but these errors were encountered: