gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Custom HTML block: "An unknown error occurred." (2.3.0)

Open zakoops opened this issue 8 years ago • 4 comments

Issue Overview

Is it my WP installation that plays havoc with the Custom HTML block under version 2.3.0 of Gutenberg?

In essence, it's impossible to use Custom HTML blocks in the Visual Editor — these blocks showing message "An unknown error occurred."

Under same setup, Custom HTML blocks were OK up to version 2.2.0

Guess this is related to new syntax highlighting (Code mirror) in Custom HTML blocks...

Steps to Reproduce (for bugs)

  1. Create a new post
  2. Verify that the Visual Editor is active
  3. Insert a block of type Custom HTML

Tested with WP version 4.9.4 and Safari (11.0.3) and Chrome (64.0.3282.186)

Everything else in Gutenberg works ok.

Expected Behavior

Should be able to edit the block contents, obviously...

Current Behavior

Message "An unknown error occurred." stops any interaction.

Possible Solution

Judging by error log shown by the Chrome inspector, some dependencies are not loaded correctly.

Same problem is noted on hosted site and on localhost.

Screenshots / Video

I tried to maximize information in this screenshot:

custom-html-error

Related Issues and/or PRs

Don't know how this problem could be related to issue #5374.

zakoops avatar Mar 03 '18 22:03 zakoops

As additional information...

Firefox (58.0.2) offers maybe a more succinct and useful view of the problem I raised a few days ago:

custom-html-error-2

The following message which appears in yellow in the screenshot essentially says in English: "Failed to load the

Owner


Other Repo Issues