• Looks like the latest update has caused quite some headaches. See also https://www.ads-software.com/support/topic/4-8-and-the-future-of-contact-form-7/.

    In our case any submission of a secondary language form does nothing (the primary works). We have narrowed the problem down to the lateds update of CF7 and found this workaround https://wpml.org/errata/contact-form-7-secondary-language-form-submission-fails/, specifically:
    Add this code to the theme’s functions.php file, found in the ../wp-content/themes/theme-name/ folder:
    add_filter( 'wpcf7_load_js', '__return_false' );

    Now the forms are submitted, but the redirection to a thank you page is not working anymore.

    [contact-form-7 id="13699" title="Contact form 1"]
    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = 'https://www.docpath.com/contactusconfirmpop';
    }, false );
    </script>;

    When will this be resolved? Is there a workaround to get the redirection working?

    Kind regards,
    André Klein

    • This topic was modified 7 years, 3 months ago by .
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try deactivating the WMPL.

    Thread Starter André Klein

    (@akleines2)

    Hi Takayuki. Thanks for the quick response ??

    We need WMPL for the bilingual site. The initial problem (not submitting the SECONDARY language forms) will only appear if WPML is active and most likely was caused by the CF7 update. After applying the workaround given by WMPL support the forms submit gain, but now your other options, i.e. redirecting to any other page, don’t work.

    I also tried the legacy option for redirecting :

    on_sent_ok: "location.replace('https://www.docpath.com/contactusconfirmpop/?lang=es');"

    Here is a capture of the settings, but it won’t work either anymore, in none of the languages. You can test it here: https://www.docpath.com/__ak_test_form/ or in the secondary language https://www.docpath.com/__ak_test_form-es/?lang=es

    The legacy option does work in another client with the same CF7 Versión 4.8.1, but those are using qTranslateX for multilingual.

    I’m not a programmer, but I suppose that the WPML Workaround deactivates loading of some of your script.

    Best would be to have the initial problem solved and support the secondary language submission. Any plans on doing this soon?

    The other versions we are using are WP 4.8.1 and the latest WPML Version 3.7.1. Here is a capture of all active plugins, in case there is any other that may interfere. The design we are using is DIVI.

    Here you can download the current DIVI funtions.php file. The WPML Workaround is at the very beginning.

    • This reply was modified 7 years, 3 months ago by .
    • This reply was modified 7 years, 3 months ago by .
    Thread Starter André Klein

    (@akleines2)

    B.t.w. I’m using your (EXTRAORDINARY) CF7 plugin on most of my customer sites. It’s strange you do not offer a paid version and only accept the “donation purchase” of $7 for the Wapuloader plugin, which I just got.

    I usually prefer to pay for software, in exchange of having access to support and/or additional functions. But I guess you want to keep things simple. If you send me an other donation link, where I can chose an amount I’m happy to do so. Independently of how this issue goes :), as I’m not in a hurry for resolution, given that we can live for some time with the Workaround and prefer installing a thoroughly tested product. ??

    André Klein

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    If it is WPML, since it’s a commercial product, we can’t support you on this purely volunteer-based forum. Please contact their support. They should be able to resolve the issue for you.

    If you have added add_filter( 'wpcf7_load_js', '__return_false' ); it’s natural that the JavaScript code for redirection doesn’t work because you’ve disabled the plugin’s JavaScript.

    I appreciate your donation, but if you thought it was for getting a support, that was a wrong idea. If so, please let me know. I will refund.

    Thread Starter André Klein

    (@akleines2)

    Sorry about this misunderstanding. The donation was not for getting support, but a thank you for your excellent free plugin. Hence I purchased it again.

    I had asked you for an additional donation link for paid support, but understand that you prefer to not go that route.

    Independently of the way you support, the problem was caused by an update to CF7 and not WPML. I understand that it may be difficult to find what party is really the source of the problem, but on the WPML forum they seem to believe it is a CF7 problem, although they will be trying to fix it in the future.

    Will you be looking into resolving this from your side too?

    Andre

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Seconddary language forms not submitted with WMPL’ is closed to new replies.