• Hi,
    When using the search on my website I get this error message on the search field:
    “The request failed. Please check your connection! Status: 0”
    It’s strange because I get it on the computer I’m logged in WordPress, but I get it also on an incognito window on Chrome.
    If I try from other computer I don’t get the error.
    Any idea why this can happen?
    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you for the details.

    The issue is, that your site URL is configured as non-www, but the www. version is also accessible: https://i.imgur.com/7HqjuiP.png

    The plugin requests the ajax handler from WordPress to make the ajax request. The URL of the handler is the non-www version of the site. There is however a CORS policy set on your server not to allow requests from cross sub-domains.

    There are two ways to resolve this:
    1. Simply configure wordpress everywhere to either use the WWW or the non WWW version of the site, and always redirect to either one of those. If you google “redirect wordpress non www” or “redirect wordpress to www” there should be tutorials how to do it.

    2. ..or lift the CORS policy. That is much more complicated, and you may have to contact the server administrator.

    Best,
    Ernest M.

Viewing 1 replies (of 1 total)
  • The topic ‘The request failed’ is closed to new replies.