• NicheLabs

    (@allennichelabs)


    WordPress Version 6.8.2
    AntiSpam for Contact Form 7 Version 0.6.4

    I had this plugin installed and active for almost a year now and it was working fine, now suddenly no one can submit a form, they get Failed to send your message. Please try later or contact the administrator by another method. I tried myself and got the exact same thing.

    If I deactivate your plugin then the form works fine. It appears that this plugin was updated recently so I wonder if the update broke this somehow???

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Erik

    (@codekraft)

    Hi @allennichelabs,

    this update is intended to fix a compatibility issue with the contact form 7 version >= 6.1.0 (see https://wordpress.org/support/topic/compatibility-issue-with-cf7-6-1/)

    At the moment, I don’t see the anti-spam plugin active, so I can’t tell you why this is happening. Could you activate it and check the console to see if you have any JS errors?

    thanks for the report!

    • This reply was modified 3 months, 1 week ago by Erik.
    Thread Starter NicheLabs

    (@allennichelabs)

    I activated your plugin and checked my developer console. I don’t see any JS errors from your plugin, though there are 2 errors reported regarding another plugin I use for the contact form – Conditional Fields for Contact Form 7, but all my conditional fields display and function properly.

    I tried deactivating that plugin but the form still doesn’t submit when your plugin is active. I’ve deactivated your plugin again since I can’t have a non-functional contact form.

    Here are the JS errors in case you need the info.

    jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'addClass') TypeError: Cannot read properties of undefined (reading 'addClass')
    at Wpcf7cfForm.displayFields (https://www.nichelabs.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.6.3:269:18)
    at https://www.nichelabs.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.6.3:943:11
    at Array.forEach ()
    at HTMLDocument. (https://www.nichelabs.com/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=2.6.3:942:19)
    at e (https://www.nichelabs.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
    at t (https://www.nichelabs.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
    ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2Understand this warning
    jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'addClass')
    at Wpcf7cfForm.displayFields (scripts.js?ver=2.6.3:269:18)
    at scripts.js?ver=2.6.3:943:11
    at Array.forEach ()
    at HTMLDocument. (scripts.js?ver=2.6.3:942:19)
    at e (jquery.min.js?ver=3.7.1:2:27028)
    at t (jquery.min.js?ver=3.7.1:2:27330)
    Plugin Author Erik

    (@codekraft)

    Hi @allennichelabs ,

    Thanks again for your report! After checking, the issue is most likely caused by the JavaScript environment being affected by those errors you mentioned. That’s also partly my fault — I should have wrapped all the plugin code inside an IIFE to isolate it from other scripts.

    I’ll fix this in the next plugin release.
    In the meantime, I recommend addressing the JS errors from the other plugin, as they might be interfering with the normal execution flow.

    Thanks for your patience!

    Hi Eric 👋:😀
    A client of mine reported the same problem today
    Antispam is v0.7.1, WP 6.8.3

    Site https://www.kanzlei-breuning.de/kontakt/

    May you have a look?

    Thx in advance

    Ralf

    Plugin Author Erik

    (@codekraft)

    ciao @ralf-r, thanks for reaching out!

    I’ve taken a look at the site you provided, and it seems like you might have multiple versions of jQuery being loaded on your page, which is a common cause of JavaScript errors, as the different versions can conflict with each other.

    I noticed these two instances:

    • The standard WordPress version: <script type="text/javascript" src="https://www.kanzlei-breuning.de/wp-includes/js/jquery/jquery.min.js" id="jquery-core-js"></script>
    • An older version loaded externally, right before the smartmenus plugin scripts: <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js" id="jquery-update-js"></script>

    This dual loading could lead to an irreversible error in the entire JavaScript execution flow. My antispam plugin’s scripts are intentionally loaded later to minimize the impact on page load speed, but the consequence is that they can be easily affected by pre-existing JS errors like this.

    I’m currently viewing the page via a VPN, as the content appears to be region-restricted for me.

    Could you confirm if there are any specific JavaScript errors showing in your browser’s console? If so, please share them so I can be sure if this jQuery conflict is the root cause or if there’s something else going on.

    Thank you for your patience!

    Best, Erik



    Hi Eric,
    thx for following up so fast. Yep, site is region-restricted. Layered security 🙂 Glad you had VPN at hand.

    I understand the technical implications, but don’t see any js-errors at all.

    What I do see is my messages valued as Spam. I already tried moving them to ham, and retraining the B8, but this doesn’t change anything. Is there any kind of log where I can see the reasons why a message is rated Spam?

    Plugin Author Erik

    (@codekraft)

    Hi @ralf-r
    Yes, you can enable advanced logging, which outputs everything to the WordPress debug.log file. Please add define( 'CF7ANTISPAM_DEBUG_EXTENDED', true); to your wp-config.php.

    You can find instructions here: https://wordpress.org/plugins/cf7-antispam/#debug. Remember that this should be kept activated for as little time as possible.

    Plugin Author Erik

    (@codekraft)

    @ralf-r
    I take a look again, and forgive me for contradicting you, but still I can see the errors in the console (I mean the browser console, dev-tools to be clear). It seems that the issue is related to some errors in the js code, for example this code line I found on that website:

        <!-- over #page -->
    <script type="text/javascript">
    var page_title = 'Wie können wir Ihnen helfen?';
    jQuery('.wpcf7-form h2').html(page_title);
    </script>

    This cannot be done. You would have to wait for the DOM to be in a ready state, for example using jQuery you may want to use $(document).ready(function)

    Let me know, if this helped solve the problem, Erik

    1. So, have been doin’ as you asked before and got this in debug.log:
    [13-Nov-2025 11:49:15 UTC] CF7A: ip address field of 87.142.119.77 is empty, this means it has been modified, removed or hacked! (i'm getting the real ip from http header)
    [13-Nov-2025 11:49:15 UTC] CF7A: 87.142.119.77 will be rejected because suspected of spam! (score 1 / 1)
    [13-Nov-2025 11:49:15 UTC] CF7A: Ban for 87.142.119.77 - results - no_ip: Address field empty

    2. Regarding the js-errors. That’s strange, I look into F12: Dev-Tools > Console but get only

    Die Ressource von "https://www.kanzlei-breuning.de/?family=Source%20Sans%20Pro%3A300%2C400%2C700%2C300italic%2C400italic%2C700italic%7CBitter%3A400%2C700&subset=latin%2Clatin-ext" wurde wegen eines MIME-Typ-Konfliktes ("text/html") blockiert (X-Content-Type-Options: nosniff).
    kontakt
    JQMIGRATE: Migrate is installed, version 3.4.1 jquery-migrate.min.js:2:981

    Unbehold from this I could try to use a v6 which IMO was working, and to exclude other plugins as the problems source?

    Plugin Author Erik

    (@codekraft)

    @ralf-r, thank you for the debug log.

    What you’ve found changes the issue considerably, as it suggests the plugin is not adding the required hidden fields to your form. CF7-Antispam must add hidden fields to the form, such as the one below: <input type="hidden" name="_cf7a_address" value="eP+2j/Ct3PofGiCrjX5Pqg==">

    But what appears from your log is that this field is not added at all… and this cause the immediate fail because the assumption is “if the hidden fields are missing the form was manipulated“.
    Since you are using the latest version of CF7 (6.1.3), incompatibility seems unlikely. You can try it yourself using the blueprint for this plugin (next to the download button on the plugin page).

    It’s a strange issue to investigate… Can I ask you to open a new issue where we explore this incident, possibly adding the plugins you are using and some information about your system (e.g. the version of PHP)?

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

You must be logged in to reply to this topic.