• Resolved AM Cargo

    (@amcargo)


    Hi there,

    We have detected a conflict from Contact Form 7 with your plugin when a contact form submission is detected as spam by Contact Form 7.

    Normally if Contact Form 7 detects a submission as spam (you can check as explained here: Spam filtering with Akismet) it outputs the following error when trying to send the form: “There was an error trying to send your message“.

    If Complianz is active (even if the Contact Form 7 integration is off), Contact Form 7 does not show the SPAM error, but always shows the “Click to accept marketing cookies and enable this content” message even if the marketing cookies are accepted.

    Could you please check this so that the spam error is shown correctly when Contact Form 7 detects the submission as spam?

    Thank you.

    • This topic was modified 3 years, 10 months ago by AM Cargo. Reason: corrected link to akismet
    • This topic was modified 3 years, 10 months ago by AM Cargo. Reason: corrected link to akismet
    • This topic was modified 3 years, 10 months ago by AM Cargo. Reason: corrected styles used
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @amcargo,

    This message; Click to accept marketing cookies and enable this content. Is available if reCaptcha and CF7 are available.

    Are you using reCaptcha as well?

    regards Aert

    Thread Starter AM Cargo

    (@amcargo)

    Hi @aahulsebos,

    We are not using recaptcha and CF7 integration is disabled in COMPLIANZ / INTEGRATIONS / CONTACT FORM 7.

    Nevertheless when a contact form is detected as a spam submission by Contact Form 7 (and Complianz is activated) instead of showing the spam error “There was an error trying to send your message” from Contact Form 7 it shows the “Click to accept marketing cookies and enable this content” from Complianz.

    Any idea how to solve this?

    You can check with the Contact Form 7 link of the first message.

    Thanks for your help.

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @amcargo,

    The integration wasn’t disabled fully, this will be updated soon. For now, here’s the fix: https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/disable-integrations.

    Thanks for letting us know,

    regards Aert

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    This release is now live, which should enable you to disabke the recaptcha integration.

    Thread Starter AM Cargo

    (@amcargo)

    Hi @rogierlankhorst,

    Thanks for this fix. Now if we disable the integration everything works as it should but we would like to keep the integration enabled.

    And if we activate the integration we still have the same problem as in the beginning: If Complianz is active (and Contact Form 7 integration is enabled), Contact Form 7 does not show the SPAM error, but always shows the “Click to accept marketing cookies and enable this content” message even if the marketing cookies are accepted.

    Here are two screenshots:

    INTEGRATION DISABLED: Contact Form 7 Spam message OK
    https://prntscr.com/xvjoyb

    INTEGRATION ENABLED (and all cookies accepted): Contact Form 7 Spam message is not shown and instead the “Click to accept marketing cookies and enable this content” message from Complianz is shown (which is incorrect as the cookies are all accepted and the problem with the form is that it has been detected as spam).
    https://prntscr.com/xvjpjr

    Could you please have a look why the Complianz plugin overwrittes the spam message of Contact Form 7?

    Thanks.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @amcargo The only way we have to give feedback to users when the captcha fails due to not accepting cookies, is to override the spam message. So that is what the integration does: if you haven’t consented, and try to post a message, you will get the spam message, which shows you that you should accept cookies.

    If Contact Form 7 integrates the WP Consent API, that would allow for more fine grained responses. Until that has happened we have no other option.

    Alternatively, you can change the message using a filter.

    function my_custom_spam_message($msg){
    	return 'This is spam, or ';
    }
    add_filter( 'cmplz_accept_cookies_contactform7', 'my_custom_spam_message');

    Please note that this overrides your normal spam message as well, so you should aim for a generic message.

    Thread Starter AM Cargo

    (@amcargo)

    Hi @rogierlankhorst,

    The thing is that we don’t use Recaptcha or any other Captcha. Just the plain contact form. Without recaptcha there should be no problem in sending the form even when the marketing cookies are not accepted. Or are we missing something?

    And the message is also displayed if marketing cookies are accepted and it should not be shown when the marketing cookies are accepted.

    Thanks for your help.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If you don’t use recaptcha, you can safely disable the CF7 integration. It is only important for recaptcha.

    Thread Starter AM Cargo

    (@amcargo)

    Hi @rogierlankhorst,

    Thanks for this info. We will keep it disabled.

    Thank you very much for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Conflict with Contact Form 7 when submission is detected as spam’ is closed to new replies.