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

Schema fails to load when field group is cloned on many different flexible content layouts #197

Closed
2 of 3 tasks
jasonbahl opened this issue Apr 18, 2024 · 0 comments · Fixed by #193
Closed
2 of 3 tasks
Assignees
Labels
status: actionable Ready for work to begin type: bug Issue that causes incorrect or unexpected behavior

Comments

@jasonbahl
Copy link
Contributor

Description

When an ACF Field Group is cloned onto many different ACF Field Groups, the schema fails to load.

Steps to reproduce

  1. With the following plugins active:
  • WPGraphQL v1.23.0
  • ACF PRO v6.2.7
  • WPGraphQL for ACF v2.2.0
  • WPGraphQL IDE 1.1.0 (optional)
  1. Import the following ACF Field Groups export: dev-site-acf-backup2.json

  2. Try to load the GraphiQL IDE

Expectation:
IDE loads and I can browse the schema and test queries, etc

Actual:
IDE fails to load the schema and outputs the following errors:

CleanShot 2024-04-18 at 16 50 35

CleanShot 2024-04-18 at 16 50 48

PHP or JSON export of the ACF Field Group(s)

dev-site-acf-backup2.json (also referenced above)

Additional context

This appears to maybe be caused by the array_merge_recursive() within WPObjectType and WPInterfaceType that implements fields from Interfaces onto implementing Interfaces and Object types.

Additionally, there appears to be some recursive functions that could bail early within WPGraphQL for ACF.

The issue seems closely related to:

  • Group field types
  • Clone field types
  • Interface fields being applied to other Interfaces / Object Types

related:

WPGraphQL Version

1.23.0

WPGraphQL For ACF Version

2.22.0

ACF (Advanced Custom Fields) Version. Free or Pro?

6.2.7 (pro)

WordPress Version

6.5.2

PHP Version

8.2

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: actionable Ready for work to begin type: bug Issue that causes incorrect or unexpected behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant