Support » Plugin: Contact Form 7 Redirection » Cannot read property ‘after_sent_script’ of undefined

  • Resolved secretja

    (@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 Author yuvalsabar

    (@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 8 months ago by  yuvalsabar.
    secretja

    (@secretja)

    Hi yuvalsabar,

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

    Thank you.

    Plugin Author yuvalsabar

    (@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.

    secretja

    (@secretja)

    Hi @yuvalsabar

    no. I only setup redirect page.

    Thank you.

    Plugin Author yuvalsabar

    (@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 yuvalsabar@gmail.com.

    tomjung09

    (@tomjung09)

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

    Plugin Author yuvalsabar

    (@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 yuvalsabar@gmail.com.

    Stucco81

    (@stucco81)

    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 Author yuvalsabar

    (@yuvalsabar)

    Hi,

    It’s pretty hard to address the problem without login details. You can send them to my email (yuvalsabar@gmail.com) and I’ll check that out.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.