Skip to content
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

"Updating Failed" message for autosaves when editing post (plugin conflict: Wordfence) #8525

Closed
xpconversions opened this issue Aug 4, 2018 · 17 comments
Labels
[Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@xpconversions
Copy link

Describe the bug
While editing a post, I keep receiving a "updating failed" message.

2018-08-04_091327

NOTE: The post saves properly if I click "SAVE DRAFT".

To Reproduce
Steps to reproduce the behavior:

  1. Edit any post
  2. Notice that you will receive the message shown in the image above every couple of minutes.

Expected behavior
The post should update properly.

Desktop (please complete the following information):

  • OS: Windows 7 (64 bit)
  • Browser Chrome
  • Version 68.0.3440.84 (Official Build) (64-bit)

Additional context

  • Gutenberg version: 3.4.0
@abwdvm
Copy link

abwdvm commented Aug 4, 2018

This is a issue I had. My fix was to edit my Cloudflare Firewall.

@youknowriad
Copy link
Contributor

If it's a cloudflare issue, please let's close and consolidate in #8441

@Footprint-Addons
Copy link

I have the same problem but no cloudflare is activated. I'm using gutenberg 3.4 on WP 4.9.8.
Nothing to be found in the error logs, in the Chrome console every 10 seconds or so a 403 error.
Tried disabling several firewall rules of WP security, to no avail.
Tried on Chrome and Firefox using Windows 8.1.

@youknowriad
Copy link
Contributor

@Footprint-Addons Can you paste the response of the 403 error. MAybe it's a security plugin disabling API endpoints or so?

@designsimply designsimply changed the title "Updating Failed" message when editing post "Updating Failed" message for autosaves when editing post Aug 6, 2018
@designsimply designsimply added the [Status] Needs More Info Follow-up required in order to be actionable. label Aug 6, 2018
@Footprint-Addons
Copy link

Footprint-Addons commented Aug 6, 2018

Hi @designsimply, you are right, it is the security plugin :
403 Forbidden
A potentially unsafe operation has been detected in your request to this site.
Generated by Wordfence at Mon, 6 Aug 2018

@youknowriad
Copy link
Contributor

I'm closing this issue as there's nothing we can do in Gutenberg

Thanks for the reports

@designsimply designsimply added [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Aug 6, 2018
@Footprint-Addons
Copy link

OK, goodbye gutenberg then. I prefer safety.

@youknowriad
Copy link
Contributor

@Footprint-Addons The issue is that the security plugins are too aggressive, it doesn't mean that Gutenberg is unsafe. And in the future I expect other Core Features than Gutenberg will rely on the REST API, so it's not a Gutenberg only issue. To be clear, these plugins shouldn't block the REST API in the first place.

Of course, it's your choice to use Gutenberg or not.

@Footprint-Addons
Copy link

@youknowriad, there are tons of articles out there warning about possible exploits of REST API. Are they exaggerating then?

@youknowriad
Copy link
Contributor

@Footprint-Addons Yes they are. All websites nowadays use REST APIs. It's possible that in a previous version, there were an exploit somewhere but in general any raised security issues in WordPress in REST API or anything else is fixed ASAP.

@Footprint-Addons
Copy link

OK, I'll contact wordfence then. Thanks.

@designsimply designsimply changed the title "Updating Failed" message for autosaves when editing post "Updating Failed" message for autosaves when editing post (plugin conflict: Wordfence) Aug 7, 2018
@Footprint-Addons
Copy link

Footprint-Addons commented Aug 8, 2018

Not only update , also autosafe and Publish, it is impossible to safe a new post.

@edemir206
Copy link

edemir206 commented Aug 21, 2018

@Footprint-Addons did manage to solve this problem with wordfence ? I'm having exact same issue.

Edit: Solved by myself, the blocking config was in wordfence > Advanced Firewall Options > Show All Rules > Disable: auth-bypass WordPress 4.7.0-4.7.1 - Authentication Bypass: Page/Post Content Modification via REST API

 

@Footprint-Addons
Copy link

Nope, I tried another server and there it works. But I'll try your solution.

@Footprint-Addons
Copy link

Footprint-Addons commented Aug 22, 2018

OK, I disabled auth-bypass WordPress 4.7.0-4.7.1 - Authentication Bypass: Page/Post Content Modification via REST API but it doesn't do anything for me. Just when I wanted to install another plugin, I've got the answer from WordFence support. Setting WordFence to Learning mode, then testing saving solved the issue. Once the post is successfully saved, you can set it to Enabled and protected again.

@designsimply
Copy link
Member

Copying another solution related to Wordfence that was posted in a different thread because it looks relevant and may be helpful for others:

Console shows this error:
POST https://tcwprintshop.com/wp-json/wp/v2/posts/1326 403 ()

Network shows similar 403 error:
1326 | 403 | fetch | index.js?ver=1536783125:1

My issue I found was caused by the fact that I migrated the site from another install. The previous install had Wordfence installed and was using a php.ini var (auto_prepend_file). After uninstalling Wordfence I didn't realize there was still the php.ini file auto_prepend_file still pointing to the old install. This was causing the issue. I use Siteground and it took 3 different support people to help me hunt this down as for some reason the error logs were not giving hints to where the block was coming from.

— h/t @mikepinto81 at #2704 (comment)

@daniellepinto81
Copy link

@designsimply thanks for the cross post. To clarify even more, check the php.ini is not using an auto_prepend from a previous install that is pointing to an old directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

8 participants
@youknowriad @designsimply @edemir206 @Footprint-Addons @daniellepinto81 @abwdvm @xpconversions and others