Support » Plugin: Contact Form 7 Multi-Step Forms » JS error “wpcf7 is not defined”

  • Since a round of plugin updates a week or 2 ago, this plugin is causing a console error (in Chrome) of “wpcf7 is not defined”. Have tried disabling ALL plugins except for CF7 (and required Avada (theme) core plugins) and activating/deactivating Multi-Step reliably triggers this error.

    Line that causes the error:
    }, null !== (t = wpcf7) && void 0 !== t ? t : {}),
    in CF7’s index.js

    Context:

    document.addEventListener("DOMContentLoaded", (function(e) {
            var t;
            wpcf7 = function(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var n = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? w(Object(n), !0).forEach((function(t) {
                        c()(e, t, n[t])
                    }
                    )) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w(Object(n)).forEach((function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
                    }
                    ))
                }
                return e
            }({
                init: b,
                submit: f,
                reset: p
            }, null !== (t = wpcf7) && void 0 !== t ? t : {}),
            document.querySelectorAll(".wpcf7 > form").forEach((function(e) {
                return wpcf7.init(e)
            }
            ))
        }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS error “wpcf7 is not defined”’ is closed to new replies.