Updating failed Post in Wordpress

Viewed 4182

I am working on WordPress blog and just started to post a new post its giving error me "Updating failed". I am not able to edit the sample post and also not able to post a new article.

WordPress Version: 5.0.2

Any Idea to resolve this issue?

Thanks

enter image description here

Browser Inspector View

enter image description here

7 Answers

This problem is caused by the Gutenberg editor. If you're website is hosted by any hosting provider, use the classic editor.

If you're hosting your website on a VPS, and you're running on Apache, try adding

<Directory /path/to/your/website>
AllowOverride All
</Directory>

To your virtual host.

If you want to get rid of this issue, you have to change the permalink structure from the admin side.

Please read this article Solution link

I saw the same problem occur when I would select certain Permalink settings (specifically ones that caused the site's .htaccess to contain anything other than a blank file).

The issue ended up being: I did not have mod-rewrite enabled on my server.

The fix: I uncommented the below (in httpd.conf) and the problem went away (and it stayed fixed no matter what Permalink settings I select in WordPress) (be sure to restart Apache after httpd.conf edits)

LoadModule rewrite_module modules/mod_rewrite.so

WordPress permalinks error for "pretty permalinks" on a Google Cloud instance gives 404 error on all the pages even if created using the default permalink, reverting it back to "pretty permalinks".

I like "pretty permalinks" and found out the best solution for the above situation is to Enable mod_rewrite in Apache: Then, goto Compute Engine>VM Instances > SSH

Type $: a2enmod rewrite Type $: sudo nano /etc/apache2/apache2.conf then Change: AllowOverride ALL from AllowOverride NONE

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride ALL 
        Require all granted
</Directory>

Restart Apache Server: sudo service apache2 restart

It should now update, create posts/pages in "pretty permalinks" with default Gutenberg editor without giving 404 error.

Solves the Rest API error https://www.praj.info

My site was behind Cloudflare and this seemed to be the reason for this issue.

In order to fix it I just installed cloudflare plugin for wordpress.

This error occurs when you are working on the Gutenberg editor. You can use the classic editor to overcome this problem. Go to the plugins>add new Search for a classic editor plugin and install it. If this doesn't work deactivate all plugins. After, you disabled all plugins start enabling plugins one by one to see which one will break WordPress again. Or you can see this article:- fix WordPress updating failed while creating or publishing a post.

Check the url in the wordpress setting, you probaly set website url as "http". It'll be fixed.

Related