Error happened at the end of the abbreviated text
That message does not occur anywhere in WP core, meaning it’s coming from your theme or a plugin. Thus the error is likely caused by a theme or plugin conflict.
Isolate the cause by selectively switching themes and deactivating plugins until the error goes away. Then take up the issue through that module’s dedicated support channel.
While I do not know the root cause of this error, here’s some ideas for possible work-arounds:
Place <!--more--> on its own line while in text view.
Convert it it to the block version (in classic editor text view):
<!-- wp:more -->
<!--more-->
<!-- /wp:more -->
Remove the more tag and place the desired excerpt in the dedicated Excerpt meta box. If you don’t see an Excerpt meta box, check mark “Excerpt” in screen options.
Thanks for the tips. I tried a template from WordPress. I am attaching the html code of the article.
But I have to attach an html file created in a text editor, this web editor would not show the code. 🙂 Better save as file open some editor gedit …
saturday.cz/stahovani/example.html
But it still shows an error in the article listing and when I use the original WordPress truncation. Inappropriately abbreviates it without a paragraph. And not what I would like to see on the front page.
The auto-excerpt feature strips out any HTML tags so that it can get an accurate word count. Because the cut-off is arbitrary, it’s extremely difficult to replace HTML tags in excerpts in a way that is syntactically correct. Thus WP does not even try to do so.
I was under the impression that <!–more–> tag excerpts don’t strip out HTML tags, but this is incorrect. (I don’t create that much WP content) For similar reasons, WP cannot maintain proper tag syntax in <!–more–> excerpts. For example, there could be opening divs without the corresponding closing divs.
Thus the only way to maintain HTML tags in excerpts is to use the dedicated excerpt meta box.
Hello I using theme Color Mag when I change theme work good. I’m still getting to know WordPress. Thanks for the tips, one can broaden one’s horizons. I’m glad that it was possible to switch to the classic editor with clean html code.