pristas-peter / wp-graphql-gutenberg

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

Block data not saving unless adding extra attribute like backgroundColor #138

Open julienkos opened 2 years ago

julienkos commented 2 years ago

Here is a little video of the issue: https://www.loom.com/share/419393b87c534b6c8264b310e4bb93b8.

I'm on a brand new install of WordPress and have only wpgraphql and this plugin installed.

If anyone has any ideas please let me know. I will try digging into the plugin code to see what's going on in the meantime and will reply here if I find a solution.

ttstauss commented 2 years ago

Grr 🤦 The amount of time I spent trying to figure out why my content isn't showing up in wpgraphql. Glad there's at least a workaround.

ojohnny commented 2 years ago

@julienkos @ttstauss

I believe I found the culprit to this problem while troubleshooting the discussion found in #100. I also believe the PR i just published (#139) should fix this.

It would be helpful if any of you can verify that the PR fixes the problem for you.

ttstauss commented 2 years ago

@ojohnny, just tested and it works great for me. Solved another issue I was having as well (I was getting this error: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty) Internal Server Error with ACF Blocks #316. I wasn't sure which plugin was causing the issue, I'll make a note over there about this fix.