Title: PHP fatal error
Last modified: October 3, 2025

---

# PHP fatal error

 *  Resolved [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-fatal-error-482/)
 * Form submission is failing, there’s the following error in the PHP error log:
   
   PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must
   be of type string, array given in …/wp-content/plugins/antispam-for-elementor-
   forms/includes/Elementor.php:46

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

 *  Plugin Author [Greyhound Studio](https://wordpress.org/support/users/madebygreyhound/)
 * (@madebygreyhound)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-fatal-error-482/#post-18667054)
 * Thanks for your report. Could you share a link to the form, or let me know what
   fields are in use please?
 *  Thread Starter [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/php-fatal-error-482/#post-18667886)
 * I narrowed this down to a checkbox field that has more than 1 option. Like this:
   [https://postimg.cc/dkPYw1bT](https://postimg.cc/dkPYw1bT)
 * If the field contains 1 option – everything works fine, the error happens with
   2 and more options.
 * I suspect that other fields that can have multiple values (e.g. radio buttons)
   will cause the same error, although I didn’t test that.
 * When you address this, keep in mind that various Elementor addons add their own
   field types, e.g. [https://www.dynamic.ooo/dynamic-content-for-elementor/features/categories/forms/](https://www.dynamic.ooo/dynamic-content-for-elementor/features/categories/forms/)
 * Thanks!
 *  Plugin Author [Greyhound Studio](https://wordpress.org/support/users/madebygreyhound/)
 * (@madebygreyhound)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-482/#post-18669423)
 * Thanks for confirming, I thought it might be the checkbox field, just wanted 
   to make sure we were looking at the same issue. Here you go, that should be fixed
   in the latest version (2.3.1) which should go live shortly. I’ve also added the`
   asef/excluded_field_types` should you need to exclude any additional fields.
 *  Thread Starter [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-482/#post-18669874)
 * Awesome, thank you!

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

The topic ‘PHP fatal error’ is closed to new replies.

 * ![](https://ps.w.org/antispam-for-elementor-forms/assets/icon.svg?rev=3047342)
 * [Antispam for Elementor Forms](https://wordpress.org/plugins/antispam-for-elementor-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/antispam-for-elementor-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/antispam-for-elementor-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/antispam-for-elementor-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/antispam-for-elementor-forms/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * Last activity: [8 months ago](https://wordpress.org/support/topic/php-fatal-error-482/#post-18669874)
 * Status: resolved