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
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
Hi @wpmudev-support7,
the provided Update works like a charm! Thank you very much for the quick and good support. 🙂
Kind Regards,
cartoonhank
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