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

Use Arrays as Default Values for Parent and Ancestor in Block Settings #289

Closed
huubl opened this issue Nov 8, 2024 · 0 comments
Closed

Comments

@huubl
Copy link
Contributor

huubl commented Nov 8, 2024

When using ACF PRO v6.3.10, ACF Composer v3.2.0, and the Gutenberg plugin v19.6.0, blocks that are not cached (wp acorn acf:cache) cause errors and prevent them from registering correctly.

The following error appears in the developer console:

acf-pro-blocks.min.js?ver=6.3.10:1 Uncaught TypeError: Cannot read properties of undefined (reading 'attributes')

This issue seems to be related to changes in Block registration: normalize blockType.parent to array and using null defaults.

I made a pull request that change the parent and ancestor defaults to arrays, which fixes the issue.

@Log1x Log1x closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants