Hello,

Today when I clicked to update my post I faced this issue

“Updating failed. Could not update post in the database” 

Here is a screenshot of the error https://prnt.sc/vf0ke6

I’m using WordPress.

edited by KFSys

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello @Araf,

After reading a bit about the issue, I found that it’s become quite common after WordPress version 5.0

How To Fix It – A Couple Tricks

This first fix is not ideal if you like using Gutenberg, but if you are using a 3rd party page builder, you can use this option without issue.

Most 3rd party page builders (as listed above) do not use the Gutenberg editor so disabling it isn’t going to effect your site.

Disable the Gutenberg Editor:

  • Install the Classic Editor plugin
  • Activate the Plugin
  • Done!

I have also seen just the activation and deactivation of this plugin work to correct the issue.

Toggle Permalinks
This is another simple trick you can try if you prefer to not use the classic editor plugin.

You can try two different approaches to this fix.

Simply go to permalinks in the Settings and click save!
If that doesn’t resolve the issue, then try this.

  • Go to Permalinks in Settings
  • Select “Plain” (remember you current settings)
  • Click Save
  • Switch back to your previous setting (ideally “Post Name”)
  • Click Save
Submit an Answer