Skip to content
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

Missing pageInfo fields #808

Open
andriuszibaitis opened this issue Sep 25, 2023 · 1 comment
Open

Missing pageInfo fields #808

andriuszibaitis opened this issue Sep 25, 2023 · 1 comment

Comments

@andriuszibaitis
Copy link

Describe the bug
When I attempt to use WPGraphQL WooCommerce (WooGraphQL) in conjunction with gatsby-source-woocommerce, I encounter numerous errors related to missing pageInfo fields.

To Reproduce
Steps to reproduce the behavior:

1. Install WPGraphQL and WPGraphQL WooCommerce (WooGraphQL) on a WordPress site.
2. Install gatsby-source-woocommerce on a Gatsby project and configure it as per the provided configuration.
3. Run gatsby develop.
Observe the errors in the console.

Expected behavior
I expected the gatsby-source-woocommerce to communicate seamlessly with my WordPress site through WPGraphQL WooCommerce (WooGraphQL).

Screenshots
Screenshot 2023-09-25 at 20 05 59
Screenshot 2023-09-25 at 20 05 47
Screenshot 2023-09-25 at 20 05 26

Plugin Versions:
WooGraphQL Version: 0.18.0
WPGraphQL Version: 1.16.0
WordPress Version: 6.3.1
WooCommerce Version: 8.1.1

I also use this plugins (I tried deactivate this plugins):
WPGraphQL for Advanced Custom Fields Version: 0.6.1
WP GraphQL Polylang: 0.6.0
WP Gatsby: 2.3.3

The issue first arose right after I installed WPGraphQL WooCommerce (WooGraphQL).

@rlc4
Copy link

rlc4 commented Sep 26, 2023

From the earlier messages about what was imported from woocommerce with the warning that it generated no nodes, these graphql elements will not be available for queries and cause errors.

I'm assuming your woocommerce has more than 0 items in it, so verify your configuration and keys are the correct ones. I expect once you are importing some items, these errors will go away.

If you want to share your woocommerce plugin config (without any API keys or other sensitive data) someone with experience with that plugin may have additional advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants