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

Impossible to publish with Gutenberg (solved by deactivating the OVH web hosting plan firewall) #8895

Closed
Koztoujours opened this issue Aug 12, 2018 · 15 comments
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@Koztoujours
Copy link

When I write a post with Gutenberg, first it shows "update failed" (free translation from French), then when I try to publish, it shows "publication failed".

Moreover, there is no automatic backup. I have drafts called "auto draft" ("brouillon auto" in French) but they are empty of any content.

I can only publish when I deactivate Gutenberg.

Experienced with Edge and Firefox.
Blog is Koztoujours.fr
Host is OVH

For info:

  • I'm not a Wordpress newbie. I use Wordpress with pleasure since 2005
  • The post shwon as published hereunder with "Gutenberger" specified could only be published after deactivating Gutenberg.

screenshot_2018-08-11 articles koztoujours wordpress

@pento
Copy link
Member

pento commented Aug 13, 2018

Thank you for the bug report, @Koztoujours!

Could you provide a list of any other plugins you have installed on this site?

Also, I noticed you use Cloudflare on your site: if you login to your Cloudflare account, do you see any errors in your Firewall log that show up when you use Gutenberg?

@Koztoujours
Copy link
Author

Koztoujours commented Aug 13, 2018 via email

@Koztoujours
Copy link
Author

I also tried with Twenty Fifteen, to see if the bug comes from my theme. It doesn't seem so.

@designsimply designsimply added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Aug 13, 2018
@pento
Copy link
Member

pento commented Aug 14, 2018

Thank you for the extra information, @Koztoujours.

The problem is probably being caused by iThemes security: you can see it blocking some REST API access here:

http://koztoujours.fr/wp-json/wp/v2/categories

Could you change the iThemes Security REST API settings to "Default Access", and try again? You can see how to change this setting here:

https://ithemes.com/security/wordpress-rest-api-restrict-access/

@Koztoujours
Copy link
Author

Unfortunately... As you can see, I did the change but still cannot publish (see the red alert "update failed" which comes to "publication failed" afterwards).

ISecurity :
screenshot_2018-08-14 ithemes security settings koztoujours wordpress 2

Fail :
screenshot_2018-08-14 test de gutenberg ajouter un nouvel article koztoujours wordpress

@ValentinBrclz
Copy link

ValentinBrclz commented Aug 14, 2018

Can you check that you deactivated the OVH firewall as well?

2018-08-15 00_24_01-votre espace client web ovh

For Cloudflare, you should try to do as suggested here, at least temporarily : #2565 (comment)

@ValentinBrclz
Copy link

Ah @Koztoujours ! For me it only worked when I deactivated the firewall on the whole hosting plan (not only in the multisite). This can be done from the "Informations générales" page, through "Modifier la configuration" next to your version of PHP.

@Koztoujours
Copy link
Author

Koztoujours commented Aug 15, 2018

Hello, thank you for your advice.

I did both, following your advice, but it still doesn't work...

OVH:
screenshot_2018-08-15 votre espace client web ovh 1

Cloudflare:
screenshot_2018-08-15 page rules koztoujours fr 123koz gmail com s account cloudflare - web performance security

By the way, I'm a little bit concerned to have to deactivate security on cloudflare and OVH (not to mention iSecurity) just to be able to publish.

@Koztoujours
Copy link
Author

I understand that the participants so far have no new ideas to propose and I want to thank them for what they did until now. However, if anyone else has a clue, it would be quite useful to allow me to keep on blogging, like I did with Wordpress for 13 years...

@ValentinBrclz
Copy link

Like I said, you need to remove the firewall from "Informations générales" and use the button "Modifier la configuration" (its the main tab when you go on an hosting plan).

I checked my error logs and I had this that was found:

"/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 "dummy-domain.ch"] [uri "/wp-json/wp/v2/pages/7/autosaves"] [unique_id "W3NShwoAPxwAACSvzqIAAABg"]

@Koztoujours
Copy link
Author

Ok.

First time, I went directly to the "multisite" tab.

This time, I went to "Informations Générales" and "modifier la configuration" then deactivate the "pare-feu applicatif".

screenshot_2018-08-18 votre espace client web ovh
screenshot_2018-08-18 votre espace client web ovh 1

I also checked that:

  • I have the page rule in cloudflare
  • I changed the iThemes Security REST API settings to "Default Access".

This done, it's ok. Thank you very much for your help.

@zachatkinson
Copy link

I am having this same issue, reinstalled my site 3 times and only plugin installed is Guttenberg itself - using TwentySeventeen and having problems. Strangely it's only on one of my sites as my others even on the same server don't have these problems.

@ValentinBrclz
Copy link

@zachatkinson : Please create another issue as this seems not to be related to this one... unless you are using ovh. Also, it doesn't help if you do not provide details (errors, hoster, cloudflare or not).

@Koztoujours : it would be ideal to be able to pass through the ovh waf if possible, I hope this can be fixed by making requests look more legit...

@FrenchW
Copy link

FrenchW commented Sep 12, 2018

Dear @Koztoujours , @zachatkinson

I'm also on WP with OVH and have the same issue.
Firewall was also disabled on the multisite configuration but, I found it activated on the host php configuration, not visible anywhere else.
I disabled it and all works fine now (and faster)
Fred

capture d ecran 2018-09-12 a 09 58 36

capture d ecran 2018-09-12 a 09 58 44
capture d ecran 2018-09-12 a 09 58 52

@designsimply designsimply changed the title Impossible to publish with Gutenberg Impossible to publish with Gutenberg (solved by deactivating the OVH web hosting plan firewall) Oct 19, 2018
@designsimply
Copy link
Member

@ValentinBrclz thank you for the direction in this issue!

@FrenchW thank you for the extra notes and screenshots!

@zachatkinson were you able to get that one site working that was giving you trouble? If not, please open a new issue and include any errors you see in your web developer tools console panel at the same time you see the "updating failed" error. That should hopefully give use more information that can lead to a solution for your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

6 participants