• Resolved Nathan Adams

    (@nathan-adams)


    A form that has had no issues in the past is now now submitting properly. Emails are sent, but the AJAX spinner keeps going and no confirmation is ever given.

    In the console I’m getting:

    index.js?ver=5.4.1:1 POST https://madderns.com.au/wp-json/contact-form-7/v1/contact-forms/4/feedback net::ERR_EMPTY_RESPONSE
    and
    {code: "fetch_error", message: "You are probably offline."}

    I’ve tried rolling back versions, re-setting permalink, turning off other plugins, and changing the version of jQuery being used. Same issue remains. I’m at a bit of a loss at what to try next.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • this often happens if the script is not loaded at the right time try to do it earlier or deactivate your caching plugins (if any)

    https://contactform7.com/why-isnt-my-ajax-contact-form-working-correctly/

    Thread Starter Nathan Adams

    (@nathan-adams)

    Hi Erik,

    I’ve had the caching plugin turned off while troubleshooting, so it wouldn’t be that.

    By “the script”, do you mean the cf7 index.js? It’s being loaded in the footer, and it’s definitely loaded before I’m trying to submit the form.

    yes but load the script in the footer it doesn’t guarantee it’s loaded correctly! for example it might be loaded before or after other scripts in the footer.

    otherwise can also be caused by this https://validator.w3.org/nu/?doc=https%3A%2F%2Fmadderns.com.au%2Fcontact%2F

    Thread Starter Nathan Adams

    (@nathan-adams)

    I’m at a bit of a loss. I’ve cloned the site from the client’s server to my own, and with the same theme, same plugins, the contact form works fine.

    The server details (as shown in Site Health) don’t look terribly different between the two, but that’s the only point of difference between the two Not working vs Working. https://dev.sector7g.com.au/madderns/contact/

    it may be something like the host’s cache/minifier (bluehost seems to have one for example that create troubles with wpcf7)

    But for first take a look at the invalid html, is good starting point! (servers looks fine, I don’t think you will find the problem there, if not under php modules)

    Thread Starter Nathan Adams

    (@nathan-adams)

    Yeah, I fixed up some of the html errors it was showing, so all that’s left is some type attributes on scripts some plugins are loading. So I can rule that out.
    Time to go find out about their current hosting! Thanks.

    Thread Starter Nathan Adams

    (@nathan-adams)

    Ended up resolving this by rolling back all the way to 4.7.

    There was no caching/minifier on the host, nor any server settings that seemed abnormal. Tried turning off all other plugins, changing to a bare minimum theme, nothing seemed to work.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Form keeps spinning, getting ERR_EMPTY RESPONSE’ is closed to new replies.