Site logo

Archived topic

The editor has encountered an unexpected error

13 replies · Started by Preetam on October 6, 2020

Viewing posts 1–14 of 14

Hi
try to add <H2> to tag on Subheading by edit HTML. see this message:
“The editor has encountered an unexpected error.”
and 3 buttons:
Attempt Recovery
Copy Post Text
Copy Error

I installed Health Check & Troubleshooting plugin.tried again – still the same problem: The editor has encountered an unexpected error.

Any help will be appreciated.

Hi there,

how are you adding the Subheading - Is this a plugin adding that feature ?

Hi David. I am adding a H2 Tags on subheading through edit as HTML option and no plugins. i tried to disable all plugins and still the problem persist.

Are you using the Block Editor ?

Yes David.I am using block editor.

Any reason why you're editing the HTML to add the H2 ?

when i am adding the content onto the editor i cant see the the option to add HTMl tags naturally so i use the option Edit as HTML. is there any way i can share the screenshot or screen recording with you the prolem?

Hi,

You can try sharing your screenshot to us by uploading it here( https://imgbb.com/ ) and giving us the link.

There's a specific block that allows you to do that. You should use Custom HTML block rather than editing a block through edit HTML or code editor.

You should be able to find it there. It's a default block readily available in Gutenberg Editor.

Read more here: https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/

Alternatively, if you just want to add an h2, you can just use the heading block.

Thank you.

As David asked, Can you tell us why you have to place an H2 inside a paragraph?

Perhaps we can offer a better solution to what you're trying to do.

By the way, your HTML syntax is wrong. the correct syntax is <h2>This is The Issue</h2> not </h2>This is The Issue</h2>. Mind the / syntax. It's only used for closing the tag.

Hi Elvin. Yes that was a mistake. Thanks for pointing out. I am not exactly using the H2 inside the paragraph but to highlight the sub headings in different HTML tags like H2 to H4.

Okay Thanks Elvin. Any idea why this issue is happening?

This archived topic is closed to new replies.