I found the solution of my trouble. There was a software firewall on my online server.
FYI, this is ModSecurity.
Could you tell us which mod_security rule it triggered? It should say in your logs.
This is a copy of the error in the log :
[Sat Aug 18 00:23:50 2018] [error] [client 99.999.999.99] ModSecurity: Access denied with code 403 (phase 2). Match of "within %{tx.allowed_request_content_type}" against "TX:0" required. [file "/usr/local/apache2/conf/modsecurity/base_rules/modsecurity_crs_30_http_policy.conf"] [line "63"] [id "960010"] [msg "Request content type is not allowed by policy"] [data "application/json"] [severity "WARNING"] [tag "POLICY/ENCODING_NOT_ALLOWED"] [tag "WASCTC/WASC-20"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/EE2"] [tag "PCI/12.1"] [hostname "www.domain.com"] [uri "/wp-json/wp/v2/posts/6/autosaves"] [unique_id "W3dK9goASzoAABfURiAAAAA-"]
And
99.999.999.999 www.domain.com - [18/Aug/2018:00:23:50 +0200] "POST /wp-json/wp/v2/posts/6/autosaves HTTP/1.1" 403 240 "http://www.domain.com/wp-admin/post.php?post=6&action=edit" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
As it is for a test site, I disabled this feature on my online server. I will contact the host (OVH) to talk to them about this problem.
FYI, the problem is displayed in the logs from 16 August.
Thank you very much, just wanted to let you know we’ve registered it and keeping tabs on things 🙂
I just started receiving this message. To the best of my knowledge, there have been no changes to my hosting server (thinking software firewalls). What other possible causes could be a play here?
I was having the same issue and OVH explicitly told me to turn off the firewall (manually even, in the .ovhconfig in the root). I am still waiting for them to admit that no, they don’t “support” WordPress anymore and that this is essentially a form of burglary.
My website was fine until yesterday when i updated to the latest wordpress version and now i can’t post on my site.
Below is the message i get.
“Updating failed” and “Publishing failed”
Totally bad experience, also worried because website has very much data and files so if I will take backup,recover until I will loss so many customers and traffic and rank too.
Issue: https://imgur.com/a/Bex2uA0
Help me to solve this issue.
WordPress 5.0
Thank You!
have you tried “classic editor” plugin?
This is a more than 4 months old topic, I am closing it to avoid further notifications going out to unsuspecting parties.