wp-graphql / wp-graphql/wpgraphql-acf

Bug on FlexContent on WPgraphql ACF

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
110
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Description

There is a bug on flexContent while using it in wordpress 6.7.1 php 8.2 and WPGraphQL and WPGraphQL ACF new version.

Steps to reproduce

query GetPage($databaseId: ID!, $asPreview: Boolean = true) {
page(id: $databaseId, idType: DATABASE_ID, asPreview: $asPreview) {
title
pageBuilder {
footerDonateCta
footerDonateType
newsletterCallToAction
pageContent {
fieldGroupName
... on pbPageContentDynamicLayout {
flexContent {
fieldGroupName
}
}
}
}
}
}

Additional context

No response

WPGraphQL Version

2.1.1

WordPress Version

6.7.1

PHP Version

8.2

Additional environment 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.
  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported query against WordPress 6.7.1, PHP 8.2, WPGraphQL 2.1.1, and the current WPGraphQL ACF version, focusing on the pageBuilder.pageContent.flexContent selection. Inspect the flexContent GraphQL entry point and confirm the fix by showing that this query returns the expected fieldGroupName without regression.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, php
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.