• Resolved cartoonhank

    (@cartoonhank)


    Hello,

    when using FriendlyCaptcha (official wordpress plugin) in combination with Forminator, I noticed a serious bug:

    When setting up a form with multiple steps in Forminator, the captcha is not loaded in the last step of the form, making it impossible to submit the form. You just get the error message “Anti-robot verification failed, please try again. (captcha missing)”.

    Reviewing the Page-Sourcecode shows, that the FriendlyCaptcha Script isnt even loaded.

    Important Notice
    I am using the latest WordPress version 6.2.2 with FC version 1.10.3 and Forminator version 1.24.1. For testing purposes I have also changed the theme to a standard WP theme without any chance of success. I had already contacted the support of the FriendlyCaptcha plugin, which after a short while gave me the feedback that the problem is not caused by the FriendlyCaptcha Plugin, but rather by the multistep function of Forminator.

    Is there any way of fixing this issue? Thank you very much in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @cartoonhank,

    I could replicate the issue with multi-step forms, I’m escalating this further to our team’s attention so that we could investigate and get this fixed asap.

    Thanks for bringing this to our attention. Will keep you posted once we get further feedback asap.

    Best Regards,

    Nithin

    Thread Starter cartoonhank

    (@cartoonhank)

    Thank you very much!

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @cartoonhank ,

    Please try the following code snippet:
    https://gist.github.com/wpmudev-sls/5e31d430d854f13dbca567becf202d2d

    <?php
    /**
     * Plugin Name: [Forminator Pro] - Fix friendly captcha integration with pagination forms
     * Description: Fix friendly captcha integration with pagination forms
     * Author: Prashant @ WPMUDEV
     * Task: SLS-5053
     * Author URI: https://premium.wpmudev.org
     * License: GPLv2 or later
     */
    
    add_filter( 'forminator_pagination_submit_markup', 'wpmudev_friendly_captcha_pagination_form', 10, 1 );
    function wpmudev_friendly_captcha_pagination_form( $html ) {
        $plugin = FriendlyCaptcha_Plugin::$instance;
        if (!$plugin->is_configured() or !$plugin->get_forminator_active()) {
            return $html;
        }
    
        frcaptcha_enqueue_widget_scripts();
        
        $elements = frcaptcha_generate_widget_tag_from_plugin($plugin);
        
        return str_replace( '<button ', $elements . '<button ', $html );
        
    }

    you can use it as MU plugin:
    https://premium.wpmudev.org/docs/getting-started/download-wpmu-dev-plugins-themes/#installing-mu-plugins

    kind regards,
    Kasia

    Thread Starter cartoonhank

    (@cartoonhank)

    Thanks for the quick reaction regarding my problem!

    I’ve installed the snippet as a custom Plugin (not MU Plugin) and could activate it without any issue. Unfortunately I am still receiving the errormessage “Anti-robot verification failed, please try again.”, even though the frc-captcha div is being loaded properly including my data-sitekey. It even says “I am a human” before submission.

    Could there be another thing causing this issue?

    Best Regards,
    cartoonhank

    Thread Starter cartoonhank

    (@cartoonhank)

    I must correct a mistake on my part:
    The custom plugin works wonderfully and I was able to submit the form without any problems.

    Thank your very much for the quick and good support!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[BUG] FriendlyCaptcha disappears when using Multistepform’ is closed to new replies.