Conversation
supportDear Erik, I just updated your (great!) plugin to the latest version on like 20 sites and on a random few of them, all the necessary cf7a hidden fields are not inserted into the form, leading to the “no_ip: Address field empty” false positives. I have no clue why this does not happen on all 20 sites, since they are all running pretty much the same stack of plugins, the same theme.. I have disabled all plugins on a testing server that also has this issue. I have also switched to the default twentytwentyfive theme, reinstalled the Antispam Plugin – nothing helped. What did help though was reverting the plugin back to 0.6.4… Maybe you can have a look? Cheers, Oli
Ciao @ohhcee , Unfortunately, the problem you describe is due to the fact that the contact form is not ‘on the page’ and the cf7-antispam script, which should only load when a form is present, isn’t not loading. I actually introduced this change with version 0.7.0, and from the next versions onwards, this optimisation will be optional. I apologise for this problem, but I also use cf7a on many websites and unfortunately this had not happened to me! To fix it, just delete this line https://github.com/wp-blocks/cf7-antispam/blob/5de87e4f9c7b4fdcb37fa6e4e72889f73622ec38/core/CF7_AntiSpam_Frontend.php#L66 this is the related GH issue https://github.com/wp-blocks/cf7-antispam/issues/137 Let me know if the issue was fixed! This reply was modified 6 months, 1 week ago by Erik .
Erik, thank you very much for the great explanation and the soon fix. Love it!
@ohhcee , I think I’ve fixed the problem, and with the new version you shouldn’t have any issues (nor any lines to modify, @o2xav ). I don’t think that was the case for you if the problem was solved by removing that line, but I subsequently found another potential issue, the cause of which I have written about here . Thank you again for your support. If you could let me know if the problem has been resolved, I would be very grateful.
Dear @codekraft , thanks for digging into this so quickly. Will do the updates asap and let you know 🙂
Hey Erik. I can confirm that your latest update fixes all the issues. Great Work!
Ciao @ohhcee , Unfortunately, the problem you describe is due to the fact that the contact form is not ‘on the page’ and the cf7-antispam script, which should only load when a form is present, isn’t not loading. I actually introduced this change with version 0.7.0, and from the next versions onwards, this optimisation will be optional. I apologise for this problem, but I also use cf7a on many websites and unfortunately this had not happened to me! To fix it, just delete this line https://github.com/wp-blocks/cf7-antispam/blob/5de87e4f9c7b4fdcb37fa6e4e72889f73622ec38/core/CF7_AntiSpam_Frontend.php#L66 this is the related GH issue https://github.com/wp-blocks/cf7-antispam/issues/137 Let me know if the issue was fixed! This reply was modified 6 months, 1 week ago by Erik .
Erik, thank you very much for the great explanation and the soon fix. Love it!
@ohhcee , I think I’ve fixed the problem, and with the new version you shouldn’t have any issues (nor any lines to modify, @o2xav ). I don’t think that was the case for you if the problem was solved by removing that line, but I subsequently found another potential issue, the cause of which I have written about here . Thank you again for your support. If you could let me know if the problem has been resolved, I would be very grateful.
Dear @codekraft , thanks for digging into this so quickly. Will do the updates asap and let you know 🙂
Hey Erik. I can confirm that your latest update fixes all the issues. Great Work!