Title: Fatal error when submitting Formidable Forms form
Last modified: February 28, 2024

---

# Fatal error when submitting Formidable Forms form

 *  Resolved [blitton](https://wordpress.org/support/users/blitton/)
 * (@blitton)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-submitting-formidable-forms-form/)
 * Hi,
 * I am using hCaptcha with both WooCommerce and Formidable Forms (free version).
   It’s working great with WooCommerce, but when I submit the contact form I built
   with Formidable Forms, I get the following error:
 * Fatal error: Uncaught TypeError: HCaptcha\FormidableForms\Form::prevent_native_validation():
   Argument #2 ($field) must be of type HCaptcha\FormidableForms\stdClass, stdClass
   given, called in /home/tuscancorp/dev.tuscancorp.com/wp-includes/class-wp-hook.
   php on line 324 and defined in /home/tuscancorp/dev.tuscancorp.com/wp-content/
   plugins/hcaptcha-for-forms-and-more/src/php/FormidableForms/Form.php:135 Stack
   trace: #0 /home/tuscancorp/dev.tuscancorp.com/wp-includes/class-wp-hook.php(324):
   HCaptcha\FormidableForms\Form->prevent_native_validation() #1 /home/tuscancorp/
   dev.tuscancorp.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /
   home/tuscancorp/dev.tuscancorp.com/wp-content/plugins/formidable/classes/models/
   fields/FrmFieldCaptcha.php(319): apply_filters() #3 /home/tuscancorp/dev.tuscancorp.
   com/wp-content/plugins/formidable/classes/models/fields/FrmFieldCaptcha.php(289):
   FrmFieldCaptcha->should_validate() #4 /home/tuscancorp/dev.tuscancorp.com/wp-
   content/plugins/formidable/classes/models/FrmEntryValidate.php(217): FrmFieldCaptcha-
   >validate() #5 /home/tuscancorp/dev.tuscancorp.com/wp-content/plugins/formidable/
   classes/models/FrmEntryValidate.php(154): FrmEntryValidate::validate_field_types()#
   6 /home/tuscancorp/dev.tuscancorp.com/wp-content/plugins/formidable/classes/models/
   FrmEntryValidate.php(37): FrmEntryValidate::validate_field() #7 /home/tuscancorp/
   dev.tuscancorp.com/wp-content/plugins/formidable/classes/controllers/FrmEntriesController.
   php(549): FrmEntryValidate::validate() #8 /home/tuscancorp/dev.tuscancorp.com/
   wp-includes/class-wp-hook.php(322): FrmEntriesController::process_entry() #9 /
   home/tuscancorp/dev.tuscancorp.com/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters() #10 /home/tuscancorp/dev.tuscancorp.com/wp-includes/plugin.php(
   517): WP_Hook->do_action() #11 /home/tuscancorp/dev.tuscancorp.com/wp-settings.
   php(665): do_action() #12 /home/tuscancorp/dev.tuscancorp.com/wp-config.php(104):
   require_once(‘/home/tuscancor…’) #13 /home/tuscancorp/dev.tuscancorp.com/wp-load.
   php(50): require_once(‘/home/tuscancor…’) #14 /home/tuscancorp/dev.tuscancorp.
   com/wp-blog-header.php(13): require_once(‘/home/tuscancor…’) #15 /home/tuscancorp/
   dev.tuscancorp.com/index.php(17): require(‘/home/tuscancor…’) #16 {main} thrown
   in /home/tuscancorp/dev.tuscancorp.com/wp-content/plugins/hcaptcha-for-forms-
   and-more/src/php/FormidableForms/Form.php on line 135
 * If I remove the hCaptcha from the form, it submits as expected. I used the Health
   Check and Troubleshooting plugin with only hCaptcha and Formidable Forms enabled
   and the Twenty Twenty-One theme to check for plugin conflicts, but the error 
   was the same.
 * Some info about the website:
    - WordPress 6.4.3
    - PHP 8.1
    - hCaptcha 3.9.0
    - Formidable Forms 6.8.2
 * I’ll be taking this website live tomorrow, so depending on when you see this,
   the website may be at www rather than dev. I’ve removed hCaptcha from the form
   for now.
 * Please let me know if you need any other information to help troubleshoot this
   issue. Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-submitting-formidable-forms-form%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-submitting-formidable-forms-form/#post-17462102)
 * Hi, thank you for the report.
 * It is a problem caused by the latest changes in Formidable Forms. I have added
   an update to our v3.10.0, to be released next week.
 *  Thread Starter [blitton](https://wordpress.org/support/users/blitton/)
 * (@blitton)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-submitting-formidable-forms-form/#post-17464001)
 * Thank you very much!

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

The topic ‘Fatal error when submitting Formidable Forms form’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [blitton](https://wordpress.org/support/users/blitton/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-submitting-formidable-forms-form/#post-17464001)
 * Status: resolved