This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Recent regressions with WPML, ACF, and GraphQL #355
Labels
close candidate
status: awaiting author response
Additional information has been requested from the author
We have a site that uses ACF, with WPML, exposed via GraphQL, and we're noticing a number of recent regressions. They seem to have started around November/December 2022 - roughly around the release of WordPress 6.1.
What we've found is if we bring our site up to date (WordPress core, ACF, WPML, etc. etc.) then several things break in our GraphQL queries. The first is that querying for menu data for non-default languages no longer works - this was reported on the
wp-graphql-wpml
Github issues here (ref).Another issue we are seeing is that some of our fields go missing in GraphQL after we update to the latest release of
Advanced Custom Fields Multilingual
.For example, this query:
Works up until we update
Advanced Custom Fields Multilingual
. After that update, this query will fail saying thatpreheadText
,preheadType
,titleText
,titleType
, andactions
fields don't exist. We can still see these fields existing when editing the content, and we can still see these fields existing when querying for the same page in the REST API, but the fields no longer show in the GraphQL Query Composer and our queries fail with errors.After the updates, when using the Query Composer, we can see new fields that exist that have similar names, but all prefixed with
defaultHeroPreheadDefaultHero
- you can see a modified query here which uses these new fields showing in GraphQL, but they all return null (not the data):Only this (^) query fails along with this query:
Which has
globalAlertContentActions
become a missing field, and a new fieldglobalAlertContentAlertContentAlertContentAlertContentAlertContentAlertContentActions
appear instead.We understand that the updating of
Advanced Custom Fields Multilingual
is what breaks these queries, but since the data still exists in the page editor using ACF, and since the data still returns via REST API, it seems specific to GraphQL that the data no longer returns after that plugins update, and GraphQL Query Composer no longer lists these fields as existing. Since we had also seen the multilingual menu issue with GraphQL (noted above), it seemed to make the most sense to file this ticket here as our assumption is that this plugin (or WPGraphQL core) will need updates in order to properly return these ACF fields again.The text was updated successfully, but these errors were encountered: