Viewing 9 replies - 1 through 9 (of 9 total)
  • To add to the above, we use Cloudflare , but we are not sure what we will have to configure to make this work.

    • This reply was modified 1 year, 7 months ago by mixos.
    Plugin Support Luckyna San

    (@luckynasan)

    @saumitrajagdale Sorry to hear you are facing issues with saving stories. Have you tried reaching out to Cloudflare Help Community regarding these WAF configurations?

    We tried to bypass the /wp-json/web-stories/v1 from WAF but with no success. Is this solution a valid one for latest version?

    • This reply was modified 1 year, 7 months ago by mixos.

    Here is how we have done it: https://ibb.co/ZWdfnkY

    We added on the Custom rules.

    Plugin Author Pascal Birchler

    (@swissspidy)

    If adjusting the WAF config didn’t help, then the issue might be elsewhere. For example sometimes other plugins can cause PHP warnings or errors that break the REST API responses.

    To verify this, you can do:

    1. Open the editor
    2. Open dev tools (F12)
    3. Go to the Network tab
    4. Filter requests by /wp-json/web-stories/v1
    5. Save the story
    6. When you get the error message, there should be 1 entry in the list for this failed save.
    7. Check the request’s “Response” tab to see what’s in there and share the details with us.

    See this screenshot for an example:

    I followed your steps and here is the results:

    It seems a JSON error is generated.

    View post on imgur.com

    • This reply was modified 1 year, 7 months ago by mixos.
    • This reply was modified 1 year, 7 months ago by mixos.
    Plugin Author Pascal Birchler

    (@swissspidy)

    See that <title><cropped-logo... part before the {"date":... section? That is causing this issue. This is coming from your theme or one of your plugins.

    Try temporarily switching your theme and disabling all other plugins to find the culprit, and then fix it.

    Thanks for your help. The issue is now resolved as per your suggestions. It was an error in the attachments page tempate file.

    Plugin Author Pascal Birchler

    (@swissspidy)

    Excellent, great to hear! I’ll mark this as resolved then.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Failed to save the story the response is not a valid json response’ is closed to new replies.