• Resolved cartoonhank

    (@cartoonhank)


    Hello,

    Since the latest updates of FriendlyCaptcha and Forminator I get the following error in my wp_debug:
    https://docs.google.com/document/d/1C_b0h6otcdjrJLU3iSUFZDFo98aFW0O_NmMKBy47nn8/edit?usp=sharing

    I am using your MU plugin “[Forminator Pro] – Fix friendly captcha integration with pagination forms” to ensure the functionality of the FriendlyCaptcha in a multistep form. As soon as I deactivate the MU plugin, the form is visible again and the error disappears, but the form cannot be submitted because a captcha is missing. Only if I deactivate FriendlyCaptcha in addition, the form can be sent without any problems.

    When looking at the FC settings, I noticed that there is now the option “Dynamically Initialize”, but unfortunately activating it didn’t help either.

    I am looking forward hearing from you soon! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @cartoonhank

    Hope you’re doing well today! Thank you for reaching out to us.

    I was able to replicate the issue with the multistep form with Friendly Captcha configured on my lab site. Thank you for bringing this to our attention.

    I am checking with our Second Level Support to see if there are any workarounds that can be suggested in this matter or if the existing snippet needs to be modified.

    We will keep you posted as soon as we receive further insights from the Second Level Support team. We appreciate your patience while we are checking it further.

    Kind Regards,
    Saurabh

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello again @cartoonhank

    That was a quick update from the Second Level Support team, it seems that the issue occurred as the function “get_forminator_active” was removed from the Friendly Captcha plugin which caused the error. To fix this, can you please remove the existing mu-plugin and replace that with the below snippet which we updated.

    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() ) {
    	return $html;
    	}
    	
    	frcaptcha_enqueue_widget_scripts();
    	
    	$elements = frcaptcha_generate_widget_tag_from_plugin( $plugin );
    	
    	return str_replace( '<button ', $elements . '<button ', $html );
    	
    	}

    You will need to install it as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    I already tested it on my lab site and it was working fine with the multistep form.

    Hope this helps.

    Kind Regards,
    Saurabh

    Thread Starter cartoonhank

    (@cartoonhank)

    Hi @wpmudev-support7,

    the provided Update works like a charm! Thank you very much for the quick and good support. ??

    Kind Regards,
    cartoonhank

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @cartoonhank,

    Glad to know the provided workaround helped to resolve the issue. I am marking this topic as resolved for now. Please feel free to open a new topic if you need any assistance, we are happy to help.

    Kind Regards,
    Nebu John

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