• Resolved d1tech

    (@d1tech)


    Hi and thank you in advance for any details you may send my way.

    I’m receiving what I think is an odd 404 error with my contact form. For some reason, this issue is now allowing my form to submit.

    The path that is throwing the 404 error looks as follows: https://www.example.com/contact/contact-form-7/v1/contact-forms/4/refill?_locale=user

    Additionally, I’m receiving an “invalid_json” error with the message reading “The response is not a valid JSON response”.

    The code block for the JSON error is as follows:

    function p(e) {
            var t = new FormData(e)
              , n = {
                contactFormId: e.wpcf7.id,
                pluginVersion: e.wpcf7.pluginVersion,
                contactFormLocale: e.wpcf7.locale,
                unitTag: e.wpcf7.unitTag,
                containerPostId: e.wpcf7.containerPost,
                status: e.wpcf7.status,
                inputs: Array.from(t, (function(e) {
                    var t = e[0]
                      , n = e[1];
                    return !t.match(/^_/) && {
                        name: t,
                        value: n
                    }
                }
                )).filter((function(e) {
                    return !1 !== e
                }
                )),
                formData: t
            };
            o()({
                path: "contact-form-7/v1/contact-forms/".concat(e.wpcf7.id, "/refill"),
                method: "GET",
                wpcf7: {
                    endpoint: "refill",
                    form: e,
                    detail: n
                }
            }).then((function(t) {
                "sent" === n.status ? u(e, "mail_sent") : u(e, "init"),
                n.apiResponse = t,
                s(e, "reset", n)
            }
            )).catch((function(e) {
                return console.error(e)
            }
            ))
        }
    

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

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Form Not Submitting – 404 Error’ is closed to new replies.