admin管理员组

文章数量:1122832

Today, when I edit a page with text that has link attached to it getting this error "This block has encountered an error and cannot be previewed.".

Same issue when I try to attach new URL/link to text in page.

There has been no changes to plugins.

Version 6.6

Checking as advised in Chrome debug tools (three dots menu, more tools, developer tools, console) got the following messages when click to edit hyperlinked text on WordPress page:

TypeError: Cannot read properties of undefined (reading 'mark') at link-format-block.js?ver=4.1.5.3:2:16593 at q (link-format-block.js?ver=4.1.5.3:2:17022) at hu (react-dom.min.js?ver=18.3.1:2:60308) at xi (react-dom.min.js?ver=18.3.1:2:119597) at bs (react-dom.min.js?ver=18.3.1:2:108749) at vs (react-dom.min.js?ver=18.3.1:2:108677) at gs (react-dom.min.js?ver=18.3.1:2:108540) at as (react-dom.min.js?ver=18.3.1:2:105347) at is (react-dom.min.js?ver=18.3.1:2:105736) at Hl (react-dom.min.js?ver=18.3.1:2:46663)

Also got the following prior messages:

deprecated.min.js?ver=e1f84915c5e8ae38964c:2 wp.editPost.PluginSidebarMoreMenuItem is deprecated since version 6.6. Please use wp.editor.PluginSidebarMoreMenuItem instead. i @ deprecated.min.js?ver=e1f84915c5e8ae38964c:2Understand this warning deprecated.min.js?ver=e1f84915c5e8ae38964c:2 wp.editPost.PluginSidebar is deprecated since version 6.6. Please use wp.editor.PluginSidebar instead. i @ deprecated.min.js?ver=e1f84915c5e8ae38964c:2Understand this warning deprecated.min.js?ver=e1f84915c5e8ae38964c:2 wp.editPost.PluginDocumentSettingPanel is deprecated since version 6.6. Please use wp.editor.PluginDocumentSettingPanel instead. i @ deprecated.min.js?ver=e1f84915c5e8ae38964c:2Understand this warning deprecated.min.js?ver=e1f84915c5e8ae38964c:2 wp.editPost.PluginPrePublishPanel is deprecated since version 6.6. Please use wp.editor.PluginPrePublishPanel instead. i @ deprecated.min.js?ver=e1f84915c5e8ae38964c:2Understand this warning deprecated.min.js?ver=e1f84915c5e8ae38964c:2 wp.editPost.PluginPostPublishPanel is deprecated since version 6.6. Please use wp.editor.PluginPostPublishPanel instead. i @ deprecated.min.js?ver=e1f84915c5e8ae38964c:2Understand this warning deprecated.min.js?ver=e1f84915c5e8ae38964c:2 anchorRef prop in wpponents.Popover is deprecated since version 6.1. Please use anchor prop instead.

Not sure what is happening.

BTW, I did try edge & firefox browsers also...but same issue when clicking on any hyperlinked text on page in edit mode. A workaround is to create the text with hyperlink in any editor (Openoffice) and then paste in the web page. However, cannot format links to open in new window - as was possible earlier in WordPress.

Thank you.

本文标签: