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

The editor has encountered an unexpected error #3929

Closed
2 tasks
Tabrisrp opened this issue Dec 12, 2017 · 10 comments · Fixed by #3934
Closed
2 tasks

The editor has encountered an unexpected error #3929

Tabrisrp opened this issue Dec 12, 2017 · 10 comments · Fixed by #3934
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Type] Bug An existing feature does not function as intended

Comments

@Tabrisrp
Copy link

Issue Overview

Gutenberg 1.9 is displaying a box with this error and 3 buttons when other plugins adding metaboxes to the edit screen are activated at the same time.

Disabling the other plugins resolve the issue and Gutenberg displays correctly.

Steps to Reproduce (for bugs)

  1. Activate Gutenberg
  2. Activate another plugin that adds metaboxes to the edit screen (personal example: SEOPress)
  3. Try to add a new post/page or edit an existing one
  4. Error in console is TypeError: e.entries is not a function. (In 'e.entries()', 'e.entries' is undefined) for /plugins/gutenberg/vendor/react-dom.min.cc6ec027.js line 436

This was tested on Safari 11.0.2

Expected Behavior

Gutenberg displaying and the metaboxes from the other plugins also.

Current Behavior

Error visible in the screenshot below

Screenshots / Video

https://imgur.com/Isr1iQi

Todos

  • Tests
  • Documentation
@TwisterMc
Copy link

I have this issue too but only in Safari oddly enough. Firefox works fine.

Error below. I replaced my actual site with site-removed.net

value@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:6:14422
value@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:6:14191
value@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:6:13207
commitLifeCycles@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:12700
c@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:1679
k@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:3490
Q@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:3942
ed@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:5980
enqueueSetState@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react-dom.min.cc6ec027.js:2:20382
setState@https://site-removed.net/wp-content/plugins/gutenberg/vendor/react.min.6b26329b.js:1:3453
onStateChange@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:97154
[native code]
notify@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:131864
notifyNestedSubs@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:132398
[native code]
onStateChange@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:97180
[native code]
notify@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:131864
notifyNestedSubs@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:132398
[native code]
onStateChange@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:97180
[native code]
l@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:98853
initializeMetaBoxes@https://site-removed.net/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513045208:1:171648
https://site-removed.net/wp-admin/post-new.php:2105:84
promiseReactionJob@[native code]

@youknowriad
Copy link
Contributor

Yes, SEOPress works for me on Chrome but not on Safari, it looks like a browser specific issue

screen shot 2017-12-12 at 08 32 24

@youknowriad youknowriad added Browser Issues Issues or PRs that are related to browser specific problems [Type] Bug An existing feature does not function as intended labels Dec 12, 2017
@TwisterMc
Copy link

For clarification, I was not using SEOPress.

@hedgefield
Copy link

This just happened to me too on 4.9.1 + 1.9. I clicked on the Categories & tags section in the sidebar, and it crashed. Attempt Recovery does nothing, plus this same error now appears on ALL other posts AND when pressing Add New too.

When I disabled Yoast SEO, the error was gone (we do add stuff to that section).

Upon returning to the post, the Categories & Tags section was open. I wanted to try and reproduce it, so I collapsed the section, turned the plugin back on, returned to the post again, clicked on Categories & Tags again, got an error again.

cc @mtias

@youknowriad
Copy link
Contributor

This happens systematically with any plugin adding meta boxes in Safari. The PR #3934 should fix it.

@hedgefield
Copy link

hedgefield commented Dec 12, 2017

This happens to me in Chrome btw, sorry. Is it Webkit-related?

@youknowriad
Copy link
Contributor

youknowriad commented Dec 12, 2017

Works for me in Chrome, do you see the same JS error above? Can you try the PR's branch?

@hedgefield
Copy link

hedgefield commented Dec 12, 2017

Close, it says

TypeError: e.types.indexOf is not a function at http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:21:108930 at http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:50596 at http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:59931 at o (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:19682) at http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:60061 at o (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:50576) at o (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:6:15944) at o (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/editor/build/index.js?ver=1513071140:21:108891) at beginWork (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:133:69) at d (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:158:393) at f (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:159:214) at g (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:159:462) at t (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:167:3) at x (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:166:247) at batchedUpdates (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:169:173) at cc (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:26:56) at jc (http://src.wordpress-develop.dev/wp-content/plugins/gutenberg/vendor/react-dom.min.3583f8be.js:35:5)

I'll try the PR.

@youknowriad
Copy link
Contributor

Probably something else, could you create a separate issue, I'll investigate later?

@hedgefield
Copy link

Sure thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants