• I’ve got a weird issue with an old blog that’s been upgraded to WP 6.4.2

    If I tried to convert some posts to Gutenberg blocks and hit Update, I get “Updating failed. Could not update post in the database.”

    But if I were to activate Classic Editor, I can edit and update the posts fine.

    What I’ve tried so far:

    • Change the DB_CHARSET in wp-config and my database from utf8 to utf8mb4 – issue not fixed
    • Adding and running this snippet from WordPress github – issue not fixed
    • Using Health Check plugin and enabling Troubleshooting mode – issue still present

    So I’m kind of stuck trying to solve this. As much as I’d like to use Gutenberg, it looks like I’m stuck with Classic Editor because of this (-_-||)

Viewing 1 replies (of 1 total)
  • As far as I understand, the block editor does things like render shortcodes as it save, and if these generate javascript errors or output stuff at the wrong point it causes the update issue.

    The first step is to use browser tools to look at the console when you get the save error, this should give you vital clues.

    See https://developer.wordpress.org/advanced-administration/debug/debug-javascript/

    If that doesn’t help start a process of elimination on plugins and themes. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install and activate “Health Check”: https://wordpress.org/plugins/health-check/
    It will add some additional features under the menu item under Tools > Site Health.
    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.
    There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/



Viewing 1 replies (of 1 total)

The topic ‘Can update post using Classic Editor only’ is closed to new replies.