WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.57k stars 4.22k forks source link

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

Closed Koztoujours closed 6 years ago

Koztoujours commented 6 years ago

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:

screenshot_2018-08-11 articles koztoujours wordpress

pento commented 6 years ago

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 commented 6 years ago

Hello,

Here is my list of plugins. However, I tried to deactivate all, except Gutenberg, and was still unable to publish.

Akismet Anti-Spam

Clean My Archives

Comments Widget Plus

Count Post Signs

Dynamic To Top

Gutenberg

iThemes Security

Jetpack par WordPress.com

JM Twitter Cards

Shareaholic | share buttons, analytics, related posts

Simple Author Highlighter

Simple Comment Editing

WP Super Cache

WP-Footnotes

WP-UserOnline

Yoast SEO

I am not very familiar with Cloudflare, which was installed by a friend. I went to "Firewall" on the dashboard but I am not sure what to look. Is it "Firewall events" ? I don't see any specific errors, just events like "challenge".

Le lun. 13 août 2018 à 04:50, Gary Pendergast notifications@github.com a écrit :

Thank you for the bug report, @Koztoujours https://github.com/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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WordPress/gutenberg/issues/8895#issuecomment-412395621, or mute the thread https://github.com/notifications/unsubscribe-auth/AoWhOc6N59u58Or-r9btexiRqN1NoarFks5uQOlZgaJpZM4V5b5B .

-- https://about.me/lemorhedec?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb Erwan Le Morhedec about.me/lemorhedec https://about.me/lemorhedec?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb

Koztoujours commented 6 years ago

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

pento commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 : https://github.com/WordPress/gutenberg/issues/2565#issuecomment-334346927

ValentinBrclz commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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:

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

zachatkinson commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

@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.