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

blockJSON is null if a query loop is used #161

Open
b00y0h opened this issue Oct 24, 2022 · 0 comments
Open

blockJSON is null if a query loop is used #161

b00y0h opened this issue Oct 24, 2022 · 0 comments

Comments

@b00y0h
Copy link

b00y0h commented Oct 24, 2022

If using wp's query inside Gutenberg query loop (CoreQueryBlock?) to display a list of posts or pages, blocks and blocksJSON returns null. Running in graphical returns the below error:

"debugMessage": "Too few arguments to function gutenberg_render_block_core_post_title(), 2 passed in /app/wp-includes/class-wp-block-type.php on line 288 and exactly 3 expected"

and debug log fills with these errors when going to graphiql page inside of WP:

[25-Oct-2022 14:18:56 UTC] PHP Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockAttributes" in /app/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Schema/Types/BlockTypes.php on line 87

[25-Oct-2022 14:18:56 UTC] PHP Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV1Attributes" in /app/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Schema/Types/BlockTypes.php on line 87

WP: 6.0.2
GraphQL API for WordPress: Version 1.12.0
WP GraphQL Gutenberg: Version 0.3.11

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

1 participant