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

Error after clicking create new post (plugin conflict Cloudflare) #8456

Closed
rgllm opened this issue Aug 3, 2018 · 5 comments
Closed

Error after clicking create new post (plugin conflict Cloudflare) #8456

rgllm opened this issue Aug 3, 2018 · 5 comments
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@rgllm
Copy link

rgllm commented Aug 3, 2018

Describe the bug
After creating a new post when clicking the categories box the editor encounters an unexpected error.

To Reproduce
Steps to reproduce the behavior:

  1. Install the try version of Gutenberg via core
  2. Click on new post
  3. See error

Screenshots
screenshot 2018-08-03 at 18 08 04
Video: https://imgur.com/a/vnxwWHx

Desktop (please complete the following information):

  • Device: MacBook Pro
  • OS: Mojave
  • Browser: Chrome dev 69.0.3497.23

Error Log
TypeError: Cannot read property 'show_ui' of undefined at site/wp-content/plugins/gutenberg/build/editor/index.js?ver=1533315246:12:302843 at i (site/wp-content/plugins/gutenberg/vendor/lodash.min.59550321.js:6:91) at An.filter (site/wp-content/plugins/gutenberg/vendor/lodash.min.59550321.js:99:338) at site/wp-content/plugins/gutenberg/build/editor/index.js?ver=1533315246:12:302808 at yh (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:96:396) at lg (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:88) at mg (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:386) at gc (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:202) at vb (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:230) at
ub (site/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:65)

P.S: I hid the site url

@rgllm rgllm changed the title Error after clicking categories box Error after clicking create new post Aug 3, 2018
@designsimply
Copy link
Member

Thank you for including the console error and a screenshot! I am also adding the error text from your screenshot for reference:

The editor has encountered an unexpected error.

I tested WordPress 4.9.8 and Gutenberg 3.4.0 with the latest stable releases of Chrome 67.0.3396.99 and macOS 10.13.6 and am unable to reproduce the problem in that environment.

I noticed you mentioned this happens "when clicking the categories box" but I couldn't see that in your video and you didn't mention it in the steps. Did you mean the "Add New" button?

What happens if you click the "Attempt Recovery" button below the error?

What happens if you click the "Add New" post button and then reload the page?

I saw a similar error reported at #8412 but I am not sure whether the resolution there is related. If you are using CloudFlare, there's a problem with the CloudFlare WAF that they're working on a fix for and there's a workaround here that you can use.

@designsimply designsimply added the [Status] Needs More Info Follow-up required in order to be actionable. label Aug 3, 2018
@youknowriad
Copy link
Contributor

Hi there!

I suspect this probably happens because some plugin or code is:

  • tweaking or disabling the REST API endpoints (a security plugin can do that)
  • adding custom taxonomies that are not available in REST (show_in_rest => false).

@AndiDittrich
Copy link

Same here: it seems to be caused by a custom permalink structure/rewrites. by using one of the default settings (without rewrites) the error disappears.

Custom Permalink Structure to reproduce the Error

/%postname%.html

Chromium Version 68.0.3440.75 (Developer Build) built on Debian 9.5, running on Debian 9.5 (64-bit)
WordPress 4.9.8 with disabled plugins

@rgllm
Copy link
Author

rgllm commented Aug 4, 2018

@designsimply the error initial occurred just when I clicked the categories box. After some attempts it started to happen when creating a new post.
If I click "Attempt Recovery" it reloads the page and gives the same error.
If I click "New Post" it give the same error (initial it successful created a new post).
Yes, I'm using CloudFlare. Any other information you need I'm pleased to help.

@youknowriad
Copy link
Contributor

@rgllm yes, there's a workaround you can attempt, it's detailed here #8441 (comment)

we contacted Cloudflare to fix these issue globally.

I'm going to closing this one as it's a duplicate of other similar issues #8441

@designsimply designsimply changed the title Error after clicking create new post Error after clicking create new post (plugin conflict Cloudflare) Aug 15, 2018
@designsimply designsimply added [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

4 participants