• Resolved Nazar Hotsa

    (@bugnumber9)


    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

    (@madebygreyhound)

    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

    (@bugnumber9)

    I narrowed this down to a checkbox field that has more than 1 option. Like this: 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/

    Thanks!

    Plugin Author Greyhound Studio

    (@madebygreyhound)

    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

    (@bugnumber9)

    Awesome, thank you!

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

You must be logged in to reply to this topic.