June 28, 2018 at 4:17 pm #50672robmauriziParticipant
Hey Zac- Working through the course now, and I just tried to add the #8 Form Fields block to a new post and WP threw an error:
The editor has encountered an unexpected error.
with the following trace:
P@http://wp-gut.local/wp-content/plugins/gutenberg/build/dom/index.js?ver=1530202452:1:8295 filter@[native code] value@http://wp-gut.local/wp-content/plugins/gutenberg/build/editor/index.js?ver=1530202452:12:167742 value@http://wp-gut.local/wp-content/plugins/gutenberg/build/editor/index.js?ver=1530202452:12:167174 jc@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:134:140 gc@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:225 vb@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:232 ub@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:67 wg@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:137:184 Ze@http://wp-gut.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:41:26 Ze@[native code]
I updated Gutenberg to 3.1.1 (from 3.1.0) and still no love.
-RobJune 29, 2018 at 1:02 pm #50971robmauriziParticipant
Odd.. I tried troubleshooting this today and it seems that if I remove the Editor component (and just leave the Inspector fields), I can add the block okay.
With the Editor intact, if I remove all of the components from within it so it just returns an empty div, I can add the block to the page. Here’s where it gets funky though. With the empty div block added to the page, I began re-instating each component one by one to see where it breaks down, and I was able to add them all back in. However, with the components intact, I can’t add a NEW block to the page (I get the error above), but the existing one works.
Then I tried adding a new Form Fields block each time with one less component on it. It seemed that the ToggleField component was the culprit, as I got the block to add successfully, but then subsequent tests to confirm that failed. Not sure if something’s cached there or not, but it might be something to look into.
- You must be logged in to reply to this topic.