Title: [BUG] Error when Using FriendlyCaptcha + Multistep-Form
Last modified: August 13, 2024

---

# [BUG] Error when Using FriendlyCaptcha + Multistep-Form

 *  Resolved [cartoonhank](https://wordpress.org/support/users/cartoonhank/)
 * (@cartoonhank)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/)
 * 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](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](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/#post-17952455)
 * Hello [@cartoonhank](https://wordpress.org/support/users/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](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/#post-17952499)
 * Hello again [@cartoonhank](https://wordpress.org/support/users/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](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](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](https://wordpress.org/support/users/cartoonhank/)
 * (@cartoonhank)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/#post-17952812)
 * Hi [@wpmudev-support7](https://wordpress.org/support/users/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](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/#post-17954305)
 * Hi [@cartoonhank](https://wordpress.org/support/users/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)

The topic ‘[BUG] Error when Using FriendlyCaptcha + Multistep-Form’ is closed to
new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [multistep](https://wordpress.org/support/topic-tag/multistep/)
 * [technical issue](https://wordpress.org/support/topic-tag/technical-issue/)

 * 4 replies
 * 3 participants
 * Last reply from: [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/bug-error-when-using-friendlycaptcha-multistep-form/#post-17954305)
 * Status: resolved