Open lekevoid opened 3 years ago
I am having the same issue.
Experience the same issue with latest gatsby-source-wordpress@5.1.0 and WP Graphql Polylang
Does it work if you downgrade to Polylang 2.x from 3.x?
Also experiencing this issue!
Any update on this issue, we're facing the same issue with "gatsby-source-wordpress": "^6.17.0", and v0.6.0 version of the plugin.
Hello, for me the problem was the WP GRAPHQL plugin. The default value of posts per page is 100 and if I exceeded this number of menu items, I got a message about duplicate. After changing the value to a larger one based filter, the problem was resolved. To be sure, also change the value of this parameter in the gatsby-source-wordpress configuration https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#schemaperpage
{
resolve: `gatsby-source-wordpress`,
options: {
schema: {
perPage: 300,
},
},
}
add_filter(
'graphql_connection_max_query_amount',
function( $amount, $source, $args, $context, $info ) {
$amount = 300;
return $amount;
},
10,
5
);
Description
We have a GatsbyJS site using gatsby-source-wordpress.
When launching gatsby develop, I get the error message : "
Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.
"The problem goes away if I disable WP GraphQL Polylang ; of course then my Gatsby translation modules break.
Steps to reproduce
yarn develop
orgatsby develop
Expected result
The develop should launch properly.
Actual result
Get the error message mentioned above, and the dev server breaks.
Environment
Our WP Plugins are :
Advanced Custom Fields, Version 5.9.5 Co-Authors Plus, Version 3.4.3 Genesis Custom Blocks, Version 1.1.0 More Fields, Version 2.1 Polylang, Version 3.0.3 WordPress Importer, Version 0.7 WP Gatsby, Version 1.0.6 WP GraphQL, Version 1.3.2 WP GraphQL Polylang, Version 0.5.0 WP REST - Polylang, Version 1.0.0 Yoast SEO Premium, Version 7.5.2
What has been tried so far
node.databaseId
.)EDIT : Added some details.