Schema won't load when special characters are used in Flex Field Layout names #164
Open
2 of 3 tasks
Labels
status: actionable
Ready for work to begin
type: bug
Issue that causes incorrect or unexpected behavior
Description
When a Flex Field Layout contains non-ascii characters in the layout name, the Schema fails to load.
Steps to reproduce
Výchozí konfigurovatelné Hero
I would expect for the Schema to still generate, but leaving out any types/fields that are invalid, and providing a debug message explaining the problem.
PHP or JSON export of the ACF Field Group(s)
acf-export-2024-02-01 (2).json.zip
Additional context
I believe we need some validation here: https://github.com/wp-graphql/wp-graphql/blob/develop/src/Type/WPObjectType.php#L109
To ensure that field names are valid before attempting to apply them.
WPGraphQL Version
1.20.0
WPGraphQL For ACF Version
2.1.0
ACF (Advanced Custom Fields) Version. Free or Pro?
latest pro
WordPress Version
6.4.2
PHP Version
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: