GoogleForCreators / web-stories-wp

Web Stories for WordPress
https://wp.stories.google
Apache License 2.0
768 stars 179 forks source link

Unable to Create Story From Template The response is not a valid JSON response. #5591

Closed vinipineschi closed 3 years ago

vinipineschi commented 3 years ago

Bug Description

I´ve tried to use the plugin but it isn´t working. I can neither select a template nor publish a story from scratch. This error message below pop-ups every time I try to use it: Unable to Create Story From Template The response is not a valid JSON response.

This error below pops up every time I try to publish a new story: Failed to save story

Screenshots

Additional Context


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance Criteria

Implementation Brief

swissspidy commented 3 years ago

Hi there,

Thanks for your report.

Does this still happen with all other plugins disabled?

Is your site behind a Web Application Firewall like Succuri or Cloudflare?

vinipineschi commented 3 years ago

Hi, thanks for answering.

Hmm, I didn't try it because I have contactform7, jetpack, and other native plugins of my website theme running. Should I disable all of them? About the second question, yes, I am using the extra security mode of Dreamhost. It is not Cloudflare, I guess the name of the WAF is OWASP mod_security.

vinipineschi commented 3 years ago

Hi, I´ve just uninstalled my WAF and now it is working. Thanks. However, let me know when you guys fix that error because I am not sure if it is a good idea to run a website without WAFs. Cheers

swissspidy commented 3 years ago

Glad to hear that helped! An alternative to fully disabling the WAF is to disable it only for certain routes, for example /wp-json/web-stories/v1.

With that said, our next release will include some compatibility improvements in this area. This way you won't need to do any of that.

If there are still issues with our upcoming release and the WAF, please let us know in the support forums.

Thanks!

vinipineschi commented 3 years ago

Great tip! Thanks for the help Pascal.

See you