• Resolved librakhan

    (@librakhan)


    Hello,

    I am trying to switch back to Gutenberg block text editor.

    I have no problems creating, editing and accessing posts in my Blog post using the block text editor.

    When I open up a Post to re edit, it is giving me an error that says “The editor has encountered an unexpected error.” with the buttons, “Attempt Recovery”, even pressing attempt Recovery and publishing the post again will not fix the issue and error re appear when I refresh the page on backend Gutenberg block Editor,

    So frustrating. I only receive these errors. I have no other plugin installed, and using the default twentytwentytwo theme,

    The above error, mostly appear when I try to copy a paragraph from google docs and paste in the new paragraph element in the Gutenberg block editor, I am giving the below link to access my WordPress dashboard and try yourself to trace the error, below is the link to my website back-end dashboard of WP.

    [ Deleted and account flagged for moderation ]

    Anyone have an idea of what seems to be the issue? I will be thankful to you please as I am stuck

    • This topic was modified 2 years, 3 months ago by Jan Dembowski. Reason: Link deleted
Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @librakhan You posted on the Internet a link that let anyone on the Internet temporarily log into your site as an admin user on a “Test” site from a company that offers free test sites.

    Do not ever do that here again. Ever. No on is permitted to log into a site even if it’s a temporary “test” site.

    That’s not allowed and not safe.

    The option “Attempt Recovery” is displayed exactly when a block is loaded in Gutenberg that uses functions that are not currently included in the installation. For example, if you once installed a plugin that gave you a table block and used it, you would get this error message when the plugin is uninstalled. You can click on “Attempt Recovery” and Gutenberg will try to recover it with blocks known by Gutenberg at that moment. Depending on what kind of function it is, this may fail.

    So if you have such a case again, set Gutenberg to the code editor and see what HTML codes are there. You can also post it here so that it can be evaluated.

    Thread Starter librakhan

    (@librakhan)

    Many Thanks for your reply @threadi ,
    I am never installed any plugin, it is fresh website without any plugin, I am using the default theme 2020two, with default gutenberg block editor, please note,

    The blow paragraph block is error free, because I manually typed the text,
    Html code:
    <p>Thi is not mes of the Karakorams in the North to the vast alluvial delta of the Indus River in the South, Pakistan remains a land of high adventure and nature.?Trekking, mountaineering, white water rafting, wild boar hunting, mountain and desert jeep safaris, camel and yak safaris, trout fishing and bird watching, are a few activities, which entice the adventure and nature lovers to Pakistan. but this is not mev<gwmw style="display:none;"></p>

    The below paragraph block is with error “Attempt to recovery” because I coppied the text from google docs,
    Html code:
    <p>as of the Karakorams in the North to the vast alluvial delta of the Indus River in the South, Pakistan remains a land of high adventure and nature.?Trekking, mountaineering, white water rafting, wild boar hunting, mountain and desert jeep safaris, camel and yak safaris, trout fishing and bird watching, are a few activities, which entice the adventure and nature lovers to Pakistan.<gwmw style="display:none;"></p>

    The below image block is with error “Attempt to recovery”
    html code:
    <figure class="wp-block-image size-full"><img src="https://smokesubstance.s4-tastewp.com/wp-content/uploads/2022/08/84699.jpg" alt="" /><figcaption><gwmw style="display:none;"><gwmw style="display:none;"></gwmw><gwmw style="display:none;"></figcaption></figure>

    Each of these HTML codes contains an incorrect because unknown HTML element (sometimes multiple times): <gwmw style="display:none;">

    Wherever you copied this from, the source of it is the reason Gutenberg doesn’t recognize it properly when loading.

    My suggestion: don’t copy the HTML code but the output of the texts from the browser and paste it into a paragraph block.

    Thread Starter librakhan

    (@librakhan)

    Sir, This is not the case with copying text only, If I insert an image through image block the same error generate, I found another glitch but dont know the reason, have a look below,

    here is the code after insert image block in Firefox browser >>> No error of “Attempt to recover”

    
    <figure class="wp-block-image size-full"><img src="https://smokesubstance.s4-tastewp.com/wp-content/uploads/2022/08/84699.jpg" alt="" /></figure>
    
    Here is the code after insert image block in  Chrome browser >>> generate error of "Attempt to recover"
    
    <figure class="wp-block-image size-full"><img src="https://smokesubstance.s4-tastewp.com/wp-content/uploads/2022/08/84699.jpg" alt="" /><figcaption><gwmw style="display:none;"><gwmw style="display:none;"></figcaption></figure>
    
    I noted that in chrome browser it insert the below extra code>> 
    <figcaption><gwmw style="display:none;"><gwmw style="display:none;"></figcaption>
    
    Similarly, in firefox it html code of paragraph is>>> error free
    <p> I like WordPress test sample text.</p>
    
    while in Chrome it html code of paragraph is >> with error
    <p>I like WordPress test sample text. <gwmw style="display:none;"><gwmw style="display:none;"></p>
    

    Sir, I cant leave chrome for now, pleas help me in tracing this evil in chrome, I have the latest and updated chrome browser. The same result I found in the online chrome browser test keeping in view that cookies might causes. even on another PC this causes in chrome,

    • This reply was modified 2 years, 3 months ago by Yui. Reason: formatting

    It might be more comprehensible if you describe your exact procedure how you take over this content.

    Thread Starter librakhan

    (@librakhan)

    The procedure is very simple, When I use Gutenberg editor in chrome browser, it generating the error message, I mean When I post or I open up a Post to re edit, it is giving me an error:

    “The editor has encountered an unexpected error.” with the buttons, “Attempt Recovery”,

    Even pressing attempt Recovery and publishing the post again will not fix the issue and error re appear when I refresh the page on backend Gutenberg block Editor, i notice that in the chrome browser, the gutenberg editor generate extra html tags i.e
    <gwmw style=”display:none;”><gwmw style=”display:none;”

    But this is not the case with fireforex browser, Gutenberg works fine without any error message,

    gwmw is not integrated by wordpress. It does not appear anywhere in the source code of WordPress or Gutenberg. Instead, it is probably inserted by the Chrome extension “Ginger” that you use. There was a post about this here at Gutenberg a few years ago: https://github.com/WordPress/gutenberg/issues/17404

    Deactivate this and possibly other Chrome Extensions to solve the problem. You are also welcome to report the problem to the extension developer once you have found it. Or to the Gutenberg team, although I doubt that anything could be changed there.

    Thread Starter librakhan

    (@librakhan)

    Hello respected @threadi,

    you are truly a genius person, who traced the culprit, you are very much right, it was unfortunately “Ginger” Plugin which was causing the error, I was searching this fix from the last one week, but failed, You saved my time, Difinityly I am going to inform the developer of this extension,

    Stay Happy, Healthy and Wealthy all the way, Best Troubleshooter on WP,

    Warm Regards,

    Libra Khan

    Thank you for the flowers. You are welcome to set the topic to solved.

    Thread Starter librakhan

    (@librakhan)

    Issue has been resolved by the Thereadi

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Gutenberg Text Editor Error (This block contains) when I open up Post to re edit’ is closed to new replies.