Updating failed. Could not update post in the database.


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

I’m using WordPress.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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