• Resolved petehinge

    (@petehinge)


    Hi,

    Hopefully you can help. We’ve built a site for a client which uses Contact Form 7 and WPML.

    The redirect plugin works great in English, which is the language the forms are set up under, however for German and Italian form settings we can’t access German or Italian pages. Is there any way around this?

    Alternatively, we tried to use the External URL option but this doesn’t do anything.

    We’re currently getting an error in the console thrown too:

    Uncaught TypeError: Cannot read property 'after_sent_script' of undefined
        at HTMLDocument.<anonymous> (autoptimize_61d46616b561cddb9cac718e7993d928.js:2490)
        at Object.wpcf7.triggerEvent (autoptimize_61d46616b561cddb9cac718e7993d928.js:2483)
        at ajaxSuccess (autoptimize_61d46616b561cddb9cac718e7993d928.js:2478)
        at Object.<anonymous> (autoptimize_61d46616b561cddb9cac718e7993d928.js:2483)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at y (jquery.js:4)
        at XMLHttpRequest.c (jquery.js:4)

    Any ideas?

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

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

    (@yuvalsabar)

    H? @petehinge,

    We’ll try to help.
    Please tell us:

    • WordPress Version
    • Contact Form 7 Version
    • Contact Form 7 Redirection Version

    Yuval.

    Thread Starter petehinge

    (@petehinge)

    Thanks @yuvalsabar

    WordPress 4.9.6
    Contact Form 7 Version 5.0.3
    Contact Form 7 Redirection Version 1.2.7

    Plugin Contributor Yuval

    (@yuvalsabar)

    I believe the only thing you need to do is to change the language in the language switcher which is in the admin bar, and then you’ll see a list of pages in the current language. See here

    Please tell us if it works for you.

    Thread Starter petehinge

    (@petehinge)

    Hi @yuvalsabar

    Thank you – I’ve tried that and unfortunately it didn’t work.

    Could there be a conflict with autoptimise? I only ask, as the console error is getting thrown after I hit submit on the form.

    It *could* be a JS optimization error, but when checking the page source with AO disabled (by adding ?ao_noptimize=1 to the URL) I still don’t see the after_sent_script in the inline JS. But you can always try disabling JS optimization to see if this fixes things. If it does, you’ll need to tweak AO’s JS optimization exclusion list (see AO’s FAQ for more info on how to troubleshoot/ exclude).

    frank (ao dev)

    Plugin Contributor Yuval

    (@yuvalsabar)

    I’m not sure about Autoptimise, you can try to disable it and check, but you shouldn’t deal with the problem with a script. It suppose to work without it. You can send me your login details to [email protected] and I’ll check that out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPML & External Links’ is closed to new replies.