-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Failed when trying to save draft #3252
Comments
My assumption is that the host might not have support for HTTP verbs except basic GET and POST. The REST API has built-in support for manually specifying intended method on a POST request: I'm not clear on how this is meant to be used from a client, whether it is built-in for the Backbone client or api-request utilities, or must be manual opt-in. |
Hmm any thoughts on how to get around this issue |
@mgarf On your end, this is dependent on the hosting environment supporting HTTP verbs aside from just GET and POST. I am unsure how much control you have over this, depending on your host, but in Apache and nginx I believe these restrictions must be explicitly put in place, so a resolution could be to remove them if the option is available. From the WordPress end, arguably it seems that the underlying Backbone client and api-request should use the I raised this today in the core-restapi Slack channel: https://wordpress.slack.com/archives/C02RQC26G/p1509540912000307 |
@aduth thank you for raising the concern with core-restapi. I'll try to figure out on my side on an easy solution to enable those wider range of verbs on azure. |
@mgarf as discussed in last week's bug scrub, this could be a duplicate of #2565. Are you using CloudFlare? If not, could you provide additional details on your testing environment? |
My apologies I never updated this thread. Once I expanded the verbs saving worked properly. The environment was a azure web app with WordPress running on IIS. No cloudflare |
@mgarf apologies but I'm not clear, is this still an issue or can this be closed? |
I'm having the same issue here. Failing every time and leaving a blank AUTO-SAVE. |
@svnsbck Do you use any Firewall Plugin? For example at All In One WP Security & Firewall it is needed to deactivate the '6G Firewall Protection'. With the 'legacy 5G Firewall Protection' Gutenberg works fine. You can find the settings at Dashboard - WP Security - Firewall - 6G Blacklist Firewall Rules See also #2565 |
@jeffpaul yep thjis can be closed |
@svnsbck is your issue occurring when trying to save a draft? |
@jeffpaul Yes, just tested again. It happens both when manually saving and the autosave. Looking at the "all posts" list shows merely a "AUTO DRAFT" which is empty and doesn't have a title. Also noticed that the "Categories and Tags" are not read and are empty. |
Closing, per #3252 (comment) |
Issue Overview
When a user in wp admin tries to save a draft, it gets update failed
Steps to Reproduce (for bugs)
Expected Behavior
Update should occur
Current Behavior
No save occurs.
Console shows the following:

Possible Solution
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: