funkhaus / wp-gql-gutenberg

GNU General Public License v3.0
4 stars 3 forks source link

Warning: Warning: Could not determine type of attribute "templateLock" #30

Closed drewbaker closed 1 year ago

drewbaker commented 2 years ago

With WP_DEBUG turned on and the below version numbers, we get these warnings when looking at the /graphql endpoint.

Screen Shot 2021-12-01 at 2 23 22 PM

Warning: Could not determine type of attribute "templateLock" in "CoreColumnBlockAttributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreColumnBlockDeprecatedV1Attributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockAttributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV1Attributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV2Attributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV3Attributes" in /www/wp-content/plugins/wp-gql-gutenberg/src/Schema/Types/BlockTypes.php on line 87

Warning: Could not determine type of attribute "templateLock" in "CoreGroupBlockDeprecatedV4Attributes" in /www/wp-content/plugins/wp-gql-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":[{"type":"DEBUG_LOGS_INACTIVE","message":"GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled."}]}}
benupham commented 2 years ago

Us too.

drewbaker commented 2 years ago

@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.

benupham commented 2 years ago

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.

sunilsingh2019 commented 1 year ago

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":[]}}

drewbaker commented 1 year ago

Still seeing this with WP-GQL Version 1.12.2, and WP-GQL-Gutenberg Version 0.3.11

rsm0128 commented 1 year ago

@drewbaker I created a PR #41 to fix this issue.