-
Notifications
You must be signed in to change notification settings - Fork 12
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
Clone Fields seem to be broken with latest release #237
Comments
Hey @infn8, can you please provide an export of your site's ACF field groups? This will allow us to better understand your setup. Which version of WPGraphQL for ACF was last working for you prior to updating to the latest (currently 2.4.1)? |
here is a zip of my ACF JSON folder in my theme. the field in question is the graphQL that DID work in version query GetPage($databaseId: ID!, $asPreview: Boolean = false) {
page(id: $databaseId, idType: DATABASE_ID, asPreview: $asPreview) {
title
content
whereToBuyDetails {
featureTileDetails {
title
subtitle
pretitle
miceType
backgroundColor
image {
node {
sourceUrl
srcSet
uri
}
}
}
}
}
locations(first: 999, where: {hideEmpty: false}) {
nodes {
uri
slug
name
}
}
retailers(first: 999) {
nodes {
id
title
terms {
nodes {
... on Location {
name
slug
}
}
}
retailerDetails {
retailUrl
retailerLogo {
node {
mediaItemUrl
srcSet
}
}
}
}
}
} |
the error was {
"errors": [
{
"message": "Cannot query field \"featureTileDetails\" on type \"WhereToBuyDetails\".",
"extensions": {
"category": "graphql"
},
"locations": [
{
"line": 6,
"column": 7
}
]
}
],
"extensions": {
"debug": [],
"queryAnalyzer": {
"keys": "5305d35ebb090a5f4174edefcf4cd72c2570c5da3215a0a64b8e2dab16e3d7b5 graphql:Query operation:GetPage list:location list:retailer",
"keysLength": 124,
"keysCount": 5,
"skippedKeys": "",
"skippedKeysSize": 0,
"skippedKeysCount": 0,
"skippedTypes": []
}
}
} |
@elliott-w I tried your approach, but it didn't work for me. I also noticed that the fields of the clone field are completely messed up, and fields from a completely different group are listed in the schema. Is there any information when we can expect a fix of this? Our site really relies on that feature, and we need to update to the latest version of that plugin to keep our site working. |
Hi everyone, Since we had some trouble with missing or broken clone fields on our site, I tested around and found a possible cause/solution for the issue. Maybe this also works for you @infn8 In our scenario we had multiple blocks like buttons, sliders etc. defined a separate fieldgroups and added them to other fieldgroups as clone fields (which worked pretty well so far). One single group was causing issues in GraphQL. After a deeper look, I noticed that the GraphQL name of the fieldgroup (in the GraphQL settings tab in the fieldgroup settings) had the same name as another fieldgroup. |
Description
I am using a clone field and it has been working, but updating to the latest version of the plug-in breaks it
Steps to reproduce
PHP or JSON export of the ACF Field Group(s)
No response
Additional context
No response
WPGraphQL Version
Version 1.28.0
WPGraphQL For ACF Version
2.4.1
ACF (Advanced Custom Fields) Version. Free or Pro?
pro Version 6.3.5
WordPress Version
6.6.1
PHP Version
PHP 8.2
Additional enviornment details
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.
The text was updated successfully, but these errors were encountered: