-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Custom HTML block: "An unknown error occurred." (2.3.0) #5381
Comments
As additional information... Firefox (58.0.2) offers maybe a more succinct and useful view of the problem I raised a few days ago: The following message which appears in yellow in the screenshot essentially says in English: "Failed to load the <script> element whose source is...":
|
For some reason, your installation is not loading the |
Not sure the problem is settled...
With this new plain vanilla setup, the Gutenberg plugin has been installed anew and activated. Still, the Custom HTML block shows the same error (‘An unknown error occurred’). And I'm not alone here: please see this page on the WordPress support forum... |
Ok let's consolidate in #5374 as it's the same issue. |
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)
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:
Related Issues and/or PRs
Don't know how this problem could be related to issue #5374.
The text was updated successfully, but these errors were encountered: