[Resolved] Update Failed/Publish Failed in WordPress After SSL Installation

Chirag Sorathiya
Nerd For Tech
Published in
1 min readApr 27, 2021

Have you ever tried to set up a WordPress website on an IIS server?

Well, I have and I tried to do that with Cloudflare Universal SSL. After installation, I couldn’t save/publish a post or a page. Every time I tried, It threw an error “Update Failed” or “Publish Failed”.

After googling around a lot, I tried following solutions and one of them worked like a charm. I hope it may help you as well.

  • Settings -> Permalinks -> Save (Didn’t work)
  • Removed all plugins and restarted IIS (Didn’t work)
  • Added always_populate_raw_post_data = -1 to php.ini (No luck)
  • Installed https://wordpress.org/plugins/classic-editor/ plugin and activated it. This one actually worked but only if I enable classic editor instead of block editor and I want to take advantage of WordPress's block editor. (So Didn’t work for me)
  • Installed https://wordpress.org/plugins/cloudflare/ plugin and activated it. (Worked like a charm). All cross-origin errors solved and everything works just fine.https://wordpress.org/plugins/cloudflare/

--

--

Nerd For Tech
Nerd For Tech

Published in Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Chirag Sorathiya
Chirag Sorathiya

Written by Chirag Sorathiya

Full Stack Developer | Angular Enthusiastic | Project Manager

No responses yet