• Hello,
    This plugin sounds interesting, however I can’t make it work as expected.
    1. Everytime I try to submit the form, it ends up on the front-end with an error message (like “error in submitting the form”).
    The JS console shows the following error:

    Uncaught TypeError: Cannot read properties of null (reading ‘setAttribute’)
    at s (script.js?ver=a36b04cf8b501e85565c:1:1933)
    at HTMLDocument.t (script.js?ver=a36b04cf8b501e85565c:1:7873)

    It points to a script in Antispam’s plugin folder, and more specifically to this portion:

    2. No email is sent to the mailbox it is supposed to reach on form submit success.
    3. But the form content is saved in Flamingo’s spam folder.
    4. In Antispam settings, I see my IP (ipv6 if it matters) getting blacklisted at every submission. The reason mentionned is “no_ip: Address field empty” (both being logged in to the blog and being a visitor lead to same result). No matter whether I unban it just before (whereas autoban is set to work after only 3 blocked attempts) and added it to the whitelist.
    5. I set the following in wp-config.php.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'CF7ANTISPAM_DEBUG', true);
    define( 'CF7ANTISPAM_DEBUG_EXTENDED', true);

    But there is nothing in wp-content/debug.log after attempting a new form submission.
    Here are for reference the options of the plugin:

    Array
    (
        [cf7a_enable] => 1
        [cf7a_version] => 0.6.2
        [cf7a_customizations_class] => fit-the-fullspace
        [cf7a_customizations_prefix] => _cf7a_
        [cf7a_cipher] => aes-128-cbc
        [cf7a_score_preset] => weak
        [cf7a_disable_reload] => 1
        [check_bot_fingerprint] => 1
        [check_bot_fingerprint_extras] => 1
        [append_on_submit] => 1
        [check_time] => 1
        [check_time_min] => 6
        [check_time_max] => 31536000
        [check_bad_ip] => 1
        [autostore_bad_ip] => 1
        [max_attempts] => 3
        [unban_after] => disabled
        [check_bad_words] => 0
        [check_bad_email_strings] => 0
        [check_bad_user_agent] => 1
        [check_dnsbl] => 0
        [check_refer] => 1
        [check_honeypot] => 1
        [check_honeyform] => 0
        [identity_protection_user] => 1
        [identity_protection_wp] => 1
        [enable_geoip_download] => 0
        [geoip_dbkey] => 
        [check_language] => 0
        [check_geo_location] => 0
        [honeyform_position] => before-content
        [enable_b8] => 1
        [b8_threshold] => 0.95
        [enable_advanced_settings] => 0
        [mailbox_protection_multiple_send] => 0
        [bad_words_list] => Array
            (
                [0] => viagra
                [1] => Earn extra cash
                [2] => MEET SINGLES
            )
    
        [bad_ip_list] => Array
            (
            )
    
        [ip_whitelist] => Array
            (
                [0] => {my_ip_for_test_purposes}
            )
    
        [bad_email_strings_list] => Array
            (
            )
    
        [bad_user_agent_list] => Array
            (
                [0] => bot
                [1] => puppeteer
                [2] => phantom
                [3] => User-Agent
                [4] => Java
                [5] => PHP
            )
    
        [dnsbl_list] => Array
            (
                [0] => dnsbl-2.uceprotect.net
                [1] => dnsbl-3.uceprotect.net
                [2] => zen.spamhaus.org
                [3] => b.barracudacentral.org
                [4] => bl.ipv6.spameatingmonkey.net
            )
    
        [honeypot_input_names] => Array
            (
                [0] => name
                [1] => email
                [2] => zip
                [3] => town
                [4] => phone
                [5] => credit-card
                [6] => ship-address
                [7] => billing_company
                [8] => billing_city
                [9] => billing_country
                [10] => email-address
            )
    
        [honeyform_excluded_pages] => Array
            (
            )
    
        [languages_locales] => Array
            (
                [allowed] => Array
                    (
                        [0] => en-US
                        [1] => en
                    )
    
                [disallowed] => Array
                    (
                    )
    
            )
    
        [score] => Array
            (
                [_fingerprinting] => 0.1
                [_time] => 0.3
                [_bad_string] => 0.5
                [_dnsbl] => 0.1
                [_honeypot] => 0.3
                [_detection] => 0.7
                [_warn] => 0.3
            )
    
        [cf7a_enabled] => 0
    )

    Also for reference, the CF7-related plugins enabled during the test (all up to date):
    – CF7
    – AntiSpam for Contact Form 7
    – Flamingo
    – Disable Flamingo Addressbook
    – Multi Step for Contact Form 7 (Lite)
    – Preview Form
    – Avada Theme/Fusion builder (which I believe adds code to the form’s frontend)
    9. If I disable the Antispam plugin, I can submit the form right away.

    Would you have any advice?

    • This topic was modified 6 months, 4 weeks ago by cpoakl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Erik

    (@codekraft)

    Thank you for the detailed report @cpoakl!

    As you said, it seems that the ipv6 address is not detected (“Empty address field”), and if the antispam do not detect the ip address correctly, it immediately blocks the email from being sent and, conseguently after xyz attempts you will be banned.

    I will try to figure out as soon as possible why this happens and why you have this bug with hidden form fields (and if this is related, of course)

    Thread Starter cpoakl

    (@cpoakl)

    Thank you for the feedback. Looking forward to hearing from you then, and let me know if you require more info.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Antispam would not let me submitting a form’ is closed to new replies.