• Resolved jaasalmeida

    (@jaasalmeida)


    Hi,
    I’m able to create and save a story when I access my blog through the ip, but when I use the blog subdomain such as blog.mysite.com.br it shows the message “Failed to save the story”. Can it be related to be using a subdomain?
    I’ve been having this issue since the beta 2 version, and I’ve just installed the new release but it didn’t solve the problem.

    My console shows the following errors when saving the draft:

    /wp-json/web-stories/v1/web-story/3698?_locale=user:1 Failed to load resource: the server responded with a status of 403 ()
    api-fetch.min.js?ver=8773a93ea0d1278a2eaa147fdb6eb96d:2 POST https://blog.mysite.com.br/wp-json/web-stories/v1/web-story/3698?_locale=user 403

    Can you help?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Luckyna San

    (@luckynasan)

    @jaasalmeida Thank you for submitting this topic. Could you share your WordPress site settings under Settings > General from the WordPress Dashboard? We can check if there are conflicting settings between the WordPress Address (URL) and the Site Address (URL)? If you wish to share this privately you can use this form.

    Thread Starter jaasalmeida

    (@jaasalmeida)

    Hi @luckynasan,

    I’ve just checked the Setting and the WordPress Address (URL) and the Site Address (URL) is exactly the same: https://blog.mysite.com.br
    Can it be related to the fact that we are using a subdomain?

    Plugin Support Luckyna San

    (@luckynasan)

    @jaasalmeida

    Can it be related to the fact that we are using a subdomain?

    The console error you received when saving the draft may indicate this is an issue with the REST API instead of with the subdomain.

    /wp-json/web-stories/v1/web-story/3698?_locale=user:1 Failed to load resource: the server responded with a status of 403 ()
    api-fetch.min.js?ver=8773a93ea0d1278a2eaa147fdb6eb96d:2 POST https://blog.mysite.com.br/wp-json/web-stories/v1/web-story/3698?_locale=user 403

    It would be helpful if you can navigate to the Site Health section under the “Status” tab, and let us know if the REST API is available?

    Sharing your Site Health info privately here will help us investigate this further. Thanks!

    First of all, the script you used is blocked by cloudflare XSS, HTML Injection security, their firewall rule 100173. However, even if I disable it, I still get another error even when going to your dashboard. There is nothing else in the console.

    Unable to Load Stories
    The response is not a valid JSON response.

    But we use json and api for other services which work. I can see in the console that you try to load ALL??? users? We have over 2k users. You should be probably loading only those with rights to write posts.

    Anyway, right now it’s not working at all.

    Plugin Support Luckyna San

    (@luckynasan)

    @keengamer Thanks for your topic! While we are still in the early stages of the plugin your insight is valuable to us. However, per forum guidelines, we’ll need to address your issue in a separate support topic. If you can post a new support topic with all the relevant information related to your issue that would be great.

    I can but the problem is still the same as the OP.

    Thread Starter jaasalmeida

    (@jaasalmeida)

    Hi @luckynasan,

    I managed to sort it out by allowing the CloudFlare managed rule protection “XSS, HTML Injection – Script Tag”. The problem is that we end up being exposed while allowing to bypass this rule. Any chance that you can improve the plugin allowing us to be protected against this kind of injection?

    Best!

    Plugin Support Luckyna San

    (@luckynasan)

    @jaasalmeida Thank you for sharing those details. We’re still looking into this and will follow up with any updates.

    Plugin Author Pascal Birchler

    (@swissspidy)

    Hi @jaasalmeida

    In the new version 1.1.0 of the plugin we’ve included an experimental solution for this issue that allows you to keep using the plugin while still being fully protected by Cloudflare.

    Because it’s still experimental, it takes a couple of steps to enable this:

    1. Add define( 'WEBSTORIES_DEV_MODE', true ); to your **wp-config.php** file
    (somewhere before the /* That's all, stop editing! Happy publishing. */) line)
    2. In your WordPress admin, go to **Stories** -> **Experiments**
    3. Toggle the **WAF Compatibility** checkbox and save the changes.
    4. Create a new story!

    Could you try this and let us know if this works for you?

    Meanwhile, we’re working hard on stabilizing this feature in time for our 1.2.0 release so you don’t have to do these steps anymore.

    Plugin Support Luckyna San

    (@luckynasan)

    @jaasalmeida Hello! We’ve recently released version 1.2.0 of Web Stories which includes the work to stabilize WAF compatibility. Could you please update to the latest version and let us know if there are any issues?

    Thanks!

    Plugin Support Luckyna San

    (@luckynasan)

    @jaasalmeida Closing this topic as resolved since we haven’t received a response. Please feel free to open a new support topic if you continue to experience any issues. Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Failed to save the story’ is closed to new replies.