Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg error writing post - The editor has encountered an unexpected error. Attempt Recovery Copy Post Text Copy Error #26558

Closed
KaylaACM opened this issue Oct 29, 2020 · 7 comments
Labels
[Status] Needs More Info Follow-up required in order to be actionable.

Comments

@KaylaACM
Copy link

Trying to write posts on WordPress with Gutenberg. It stops suddenly and this error comes up. Clicking attempt recovery does nothing.

Screen Shot 2020-10-29 at 11 20 06 am

@talldan
Copy link
Contributor

talldan commented Oct 29, 2020

@KaylaACM Could you click Copy Error and paste the output in a comment here. Thanks.

@talldan talldan added the [Status] Needs More Info Follow-up required in order to be actionable. label Oct 29, 2020
@mprior92
Copy link

I'm constantly getting the same error.

TypeError: Cannot read property 'attributes' of null

@talldan
Copy link
Contributor

talldan commented Oct 29, 2020

Thanks for sharing the error. Unfortunately that's quite difficult to track down as attributes is used in a lot of place. I hoped the error would have a stack trace with it.

@mprior92 if you open the browser dev tools when the error comes up (right click somewhere on the page and select 'Inspect Element') and then switch to the console tab. If there's red text there it'd be great if you could screenshot it and post it here.

@KaylaACM
Copy link
Author

Error: An error occurred while running 'mapSelect': u.substr is not a function
The error may be correlated with this previous error:
TypeError: u.substr is not a function
at v (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-serialization-default-parser/index.js?ver=7110f347451a9a2bcae6223b180b96dd:1:3536)
at b (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-serialization-default-parser/index.js?ver=7110f347451a9a2bcae6223b180b96dd:1:2843)
at p (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-serialization-default-parser/index.js?ver=7110f347451a9a2bcae6223b180b96dd:1:2342)
at Gr (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/blocks/index.js?ver=c8e8f699f604ff1628eaf1863098f07a:13:36982)
at https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=111d02e55937608149e0d53ccb3d5ab2:25:51819
at u (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=111d02e55937608149e0d53ccb3d5ab2:1:10419)
at i (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=111d02e55937608149e0d53ccb3d5ab2:25:49769)
at Array.map ()
at https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=111d02e55937608149e0d53ccb3d5ab2:25:50158
at u (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/block-editor/index.js?ver=111d02e55937608149e0d53ccb3d5ab2:1:10419)

Original stack trace:
at Xe (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/data/index.js?ver=a0effe22ca5a445ba9c4ee384cdf7853:1:28482)
at https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/build/data/index.js?ver=a0effe22ca5a445ba9c4ee384cdf7853:1:29038
at we (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:84:293)
at He (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:97:464)
at zj (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:228:406)
at Th (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:152:223)
at tj (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:152:152)
at Te (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:146:151)
at https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react-dom.min.de439aae.js:61:68
at unstable_runWithPriority (https://adrianchambersmotorsports.com.au/wp-content/plugins/gutenberg/vendor/react.min.e713ea3b.js:25:260)

@KaylaACM
Copy link
Author

Screen Shot 2020-10-29 at 3 09 04 pm

@talldan
Copy link
Contributor

talldan commented Oct 29, 2020

Thanks @KaylaACM. This is something that will be fixed in an upcoming version of the Gutenberg plugin.

It's a bad bug that's triggered by having an empty reusable block on your site. As a temporary workaround you can remove the empty reusable block from your site, or add something to it. Some instructions here - #26381 (comment)

Sorry that you've been affected by this one!

@talldan
Copy link
Contributor

talldan commented Dec 16, 2020

Closing as this has since been fixed (and I know the website in question was able to resolve the issue).

@talldan talldan closed this as completed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs More Info Follow-up required in order to be actionable.
Projects
None yet
Development

No branches or pull requests

3 participants