pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
298 stars 62 forks source link

Could not determine type of attribute "templateLock" #127

Open olie-larner opened 2 years ago

olie-larner commented 2 years ago

I am now getting the following error below the GraphQL options on an "Add New Field Group" page: Warning: Could not determine type of attribute "templateLock" in "CoreColumnBlockAttributes" in /var/www/html/cms/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Schema/Types/BlockTypes.php on line 87

acafourek commented 2 years ago

I see the same error on each request when WP_DEBUG is on.

The get_attribute_type function expects $attribute to be an array with a type value; it switches over $attribute['type']. But for the templateBlock. that attribute variable looks like this:

[
    [enum] => [
            [0] => all
            [1] => insert
            [2] => 
        ]
]

Using plugin v 0.3.11

vstrelianyi commented 2 years ago

I'm having the warning on editing Advanced Custom Fields graphql options image

rauluranga commented 2 years ago

Same here!, currently on WordPress 5.8, wp-graphql 1.6.11, wp-graphql-acf v0.5.3 and wp-graphql-gutenberg 0.3.11. as @vstrelianyi mentions, I'm having the warning on editing Advanced Custom Fields graphql options

Screen Shot 2022-01-12 at 11 09 30
Bjornjansfelt commented 2 years ago

Anyone managed to solve this?

nonlinearcom commented 2 years ago

same here 👀

Dev-Ditrict-Web commented 1 year ago

Same here.

Anybody ever found a solution ?