• Resolved crslawltd

    (@crslawltd)


    I have repeatedly been getting this issue with PublishPress Blocks, whereby when I try to edit a page I get the message “The editor has encountered an unexpected error.”

    Clicking “Attempt Recovery” does nothing but hide the error alert. I can click “Copy Error” which copies this:

    TypeError: Cannot destructure property 'categories' of 'Object(...)(...)' as it is undefined.
        at Dl (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/block-editor.min.js:12:182640)
        at ts (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/block-editor.min.js:12:231789)
        at we (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:84:293)
        at zj (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:226:496)
        at Th (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:152:223)
        at tj (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:152:152)
        at Te (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:146:151)
        at https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:61:68
        at unstable_runWithPriority (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react.min.js:25:260)
        at Da (https://chrisruddsolicitors.co.uk/wp-includes/js/dist/vendor/react-dom.min.js:60:280)

    This specifically happens after I have viewed a paged, clicked Edit Page, and the editor loads – the error occurs when I click onto any block to begin editing.

    This prevents me from making any edits to pages, posts etc. Up to now, I have been able to simply disable the blocks plugin and edit the text I need to. I am unable to add any new blocks provided by the plugin, though.

    I have gone through all plugins and made sure there are no plugin conflicts.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 30 total)
  • Same issue here. I’m running Twenty Twenty One theme and everything is completely updated. It was working until the most recent Gutenberg update, not the one today but a few days ago.

    Plugin Author Steve Burge

    (@stevejburge)

    @danquigley @crslawltd Can you try going back to a previous release? https://www.ads-software.com/plugins/wp-rollback/.

    Does it start working again if you roll back to 2.10.4, for example?

    Rolling back your plugin is does not do anything. However, if I roll the Gutenberg Plugin back to 11.4.1, then your plugin stops crashing the block editor.

    Seems to be a compatibility issue with the current Gutenberg build.

    P.S. thanks for the tip on the roll back plugin. I wondered if there was something like that.

    Plugin Author Steve Burge

    (@stevejburge)

    @danquigley Ah, that’s a useful hint … you’re using the extra Gutenberg plugin and not just core WordPress?

    @stevejburge Correct. To be honest, I thought it was necessary to use the block editor.

    Plugin Author Steve Burge

    (@stevejburge)

    @danquigley No, far from it.

    You need that plugin only if you want to live on the bleeding edge of new features.

    Can you try disabling it for now?

    @stevejburge I disabled it. I see you can’t delete it, funny.

    No issues when it’s disabled or when Gutenberg 11.4.1 is enabled.

    Thread Starter crslawltd

    (@crslawltd)

    Hi @stevejburge – I do not and have not had the Gutenberg plugin installed – I have been having this issue for several versions of the PublishPress Blocks plugin.

    • This reply was modified 3 years, 5 months ago by crslawltd.
    Thread Starter crslawltd

    (@crslawltd)

    To clarify on my original post – I can load the Edit page, and I can click into ordinary blocks, make edits, and save them. It appears the error only occurs when I try to add new blocks.

    Plugin Author htmgarcia

    (@htmgarcia)

    Hi @crslawltd,

    1) May you share step by step details to reproduce the issue?
    2) In addition which WordPress and PublishPress Blocks version are you using?

    Thread Starter crslawltd

    (@crslawltd)

    I am currently on WordPress version 5.8.1 and PublishPress Blocks version 2.10.5.

    Reproducing the issue:

    1. Logged in and viewing a page on the front end.
    2. Click Edit Page on the Admin bar
    3. I can click into blocks and edit existing text
    4. Click on a plus icon to add a new block
    5. The page editor disappears and I am shown the error message “The editor has encountered an unexpected error.” Buttons available are Attempt Recovery, Copy Post Test, and Copy Error.
    Plugin Author htmgarcia

    (@htmgarcia)

    Thanks for sharing the instructions, @crslawltd ! In my end I’m not able to reach the error.

    Check if there is a reference error in browser console that points to plugin file.
    Or deactivate other plugins, in particular the ones related to Gutenberg editor and blocks, and see if the issue is gone.

    This may tell us if the issue involves other plugin.

    Thread Starter crslawltd

    (@crslawltd)

    @htmgarcia thanks for the response. I have tried this and the only issue I can see in the console causing this comes from PublishPress Blocks, with the below errors in the console:

    DevTools failed to load source map: Could not load content for https://chrisruddsolicitors.co.uk/wp-content/plugins/advanced-gutenberg/assets/blocks/post-sidebar.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load source map: Could not load content for https://chrisruddsolicitors.co.uk/wp-content/plugins/advanced-gutenberg/assets/blocks/blocks.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    Plugin Author htmgarcia

    (@htmgarcia)

    @crslawltd those are warnings about map files for developers. That doesn’t relate to breaking the editor.

    What about switching the theme for a second as a test. Is the problem gone?

    Thread Starter crslawltd

    (@crslawltd)

    @htmgarcia I just tried switching back to Twenty Twenty-One and still had the exact same error.

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘The editor has encountered an unexpected error.’ is closed to new replies.