• Resolved x1code

    (@secretja)


    Hi,

    redirect doesn’t work and I’m getting next error:
    wpcf7-redirect-script.js:10

     Uncaught TypeError: Cannot read property 'after_sent_script' of undefined
        at HTMLDocument.<anonymous> (wpcf7-redirect-script.js:10)
        at HTMLDivElement.<anonymous> (scripts.js:182)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at a.fn.init.$.fn.wpcf7TriggerEvent (scripts.js:169)
        at Object.$.wpcf7AjaxSuccess (scripts.js:139)
        at Object.t.success (jquery.form.min.js:11)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at y (jquery.js:4)

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @secretja,
    Please paste a screenshot of your console and we’ll try to help. Also, please take a screenshot of your redirect settings.

    • This reply was modified 7 years ago by Yuval.
    Thread Starter x1code

    (@secretja)

    Hi yuvalsabar,

    here it is – https://i.imgur.com/kxbwUVT.png

    Thank you.

    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @secretja,

    Have you added any scripts to run after form is sent? If you did, please try to remove them. If everything works properly after the scripts removal, it means you have a problem with your script.

    Thread Starter x1code

    (@secretja)

    Hi @yuvalsabar

    no. I only setup redirect page.

    Thank you.

    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @secretja,

    That’s odd. Try changing your theme to Twenty Seventeen to check if it’s theme-related issue. If the problem also occurs in Twenty Seventeen, you can switch back to your theme and send me your login details and I’ll check that out.

    My email is [email protected].

    I’m having the same issue. All I did was add the plugin and a page to redirect to.
    Screenshot

    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi,

    Same same ??

    That’s odd. Try changing your theme to Twenty Seventeen to check if it’s theme-related issue. If the problem also occurs in Twenty Seventeen, you can switch back to your theme and send me your login details and I’ll check that out.

    My email is [email protected].

    Hi, i’ve the same problem, and i know that is due to this filter:

    add_filter(‘cfdb_form_data’, ‘lets_save_contacts’);

    that save record on my cfbd DB.

    How could i fix this error in order to user your redirection?

    Thank you
    Vincenzo

    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi,

    It’s pretty hard to address the problem without login details. You can send them to my email ([email protected]) and I’ll check that out.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot read property ‘after_sent_script’ of undefined’ is closed to new replies.