Closed drewbaker closed 1 year ago
Us too.
@benupham Can you share with me your GQL query that caused this error? I'm not seeing it anymore (maybe fixed with new WP or WP=GQL versions?) and I'd like to try to replicate it.
We still get them at least on a local env (debugging is off elsewhere).
WP 5.8.2 WP GQL 1.6.6 WP GQL Gutenberg 0.3.11
Happy to upgrade any of them if it will help. It seems to log the error regardless of the graphql query, although I haven't tried every possible combination.
I am getting this warning can someone help me to fix this. PHP v7.4.3 wordpress v6.0.2 graphql v1.11.2 wp graphql gutenberg v0.3.11
Warning: Could not determine type of attribute "templateLock" in "CoreColumnBlockAttributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreColumnBlockDeprecatedV1Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockAttributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV1Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV2Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV3Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV4Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV5Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV6Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV7Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV8Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreCoverBlockDeprecatedV9Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockAttributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV1Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV2Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV3Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87
Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV4Attributes" in D:\xampp\htdocs\portfolio-sunil\web\app\plugins\wp-graphql-gutenberg\src\Schema\Types\BlockTypes.php on line 87 {"errors":[{"message":"GraphQL Request must include at least one of those two parameters: \"query\" or \"queryId\"","extensions":{"category":"request"}}],"extensions":{"debug":[]}}
Still seeing this with WP-GQL Version 1.12.2, and WP-GQL-Gutenberg Version 0.3.11
@drewbaker I created a PR #41 to fix this issue.
With
WP_DEBUG
turned on and the below version numbers, we get these warnings when looking at the/graphql
endpoint.