silentzco / statamic-akismet

4 stars 2 forks source link

Spam Submissions not flagged as spam #31

Closed knieth closed 2 years ago

knieth commented 3 years ago

Hello,

We're having issues with the addon.

Environment Statamic 3.1.18 PHP 7.4.14

Installation steps we've made:

Current config

image

image

Issues we've encountered:

Spam submission are not flagged as spam. http://share.iation.com/v/DdDuuR6uRm2A9BhBdgI7

Only manual marking spams currently works, and if there's spams clicking the 'Spam Queue' throws an error, need to directly go to the specific form spam queue. http://share.iation.com/v/VqMTktBELvefGW7mQA19

edalzell commented 3 years ago

clicking the 'Spam Queue' throws an error

What error?

edalzell commented 3 years ago

Opened a new issue for the SVG: https://github.com/silentzco/statamic-akismet/issues/32

edalzell commented 3 years ago

@knieth can I see your form template please?

edalzell commented 3 years ago

Also, can you please try with akismet-guaranteed-spam@example.com as the email address or viagra-test-123 as the name as see if those are flagged as spam?

sigalkel commented 3 years ago

using the test values: akismet-guaranteed-spam@example.com as the email or viagra-test-123 as name doesn't move the contact forms into the spam queue.

edalzell commented 3 years ago

@sigalkel can I see your akismet.php config file please?

sigalkel commented 3 years ago

akismet.zip

edalzell commented 3 years ago

Can you please zip up your site (please remove the node-modules and vendor folders) and send it to me?

sigalkel commented 3 years ago

Hi Erin, did you get my files?

edalzell commented 3 years ago

Yup, will be looking this week.

edalzell commented 3 years ago

The Akismet key you have in the .env is incorrect. When I use my Akismet key everything works as expected. With yours I get an invalid error on the call to Akismet.

Please double check the key.

edalzell commented 3 years ago

Not the Akismet license key the Akismet API key

CleanShot 2021-09-27 at 10 39 49@2x
sigalkel commented 3 years ago

Now, the API key showed up on https://akismet.com/account/ and I put it in the env file, cleared all caches including config but still getting the same error in the spam queue.

edalzell commented 3 years ago

Now, the API key showed up on https://akismet.com/account/ and I put it in the env file, cleared all caches including config but still getting the same error in the spam queue.

Wrong issue for this comment, that's this issue: https://github.com/silentzco/statamic-akismet/issues/34

knieth commented 3 years ago

@edalzell here is the contact form template

Also I already tried testing with akismet-guaranteed-spam@example.com as the email address or viagra-test-123 as the name, the submission still not getting flagged as spam.

image image

        <div class="contact-form" id="contact_form">

            {{ form:create in="contact" redirect="/contact#contact_form_container" error_redirect="/contact#contact_form_container" }}

              {{ if errors }}
                  <div class="callout alert">
                      <p>
                        {{ errors }}
                            {{ value }}<br>
                        {{ /errors }}
                      </p>
                  </div>
              {{ /if }}

              {{ if success }}
                  <div class="callout success">
                      <p>
                          Thank you for contacting us, we will be in touch.
                      </p>
                  </div>
              {{ /if }}

              <div class="row">
                <div class="large-6 columns">
                  <label>Name</label>
                  <input type="text" id="name" name="name" value="{{ old:name }}" autofocus required>
                </div>
                <div class="large-6 columns">
                  <label>Email Address</label>
                  <input type="text" id="email" name="email" value="{{ old:email }}" required>
                </div>
                <div class="large-12 columns">
                  <label>Message</label>
                  <textarea id="message" name="message" required>{{ old:message }}</textarea>
                </div>
                <div class="large-12 columns">
                  {{ captcha }}<br>
                </div>
                <div class="large-12 columns">
                  <input type="text" name="honeypot" style="display: none;"/>
                  <input type="submit" class="button" value="Submit">
                </div>
              </div>
            {{ /form:create }}

        </div>
edalzell commented 3 years ago

@knieth this is the Aksimet API key NOT the license key from Statamic right?

CleanShot 2021-10-10 at 12 41 14@2x
knieth commented 3 years ago

@edalzell, yes that is NOT the license key from Statamic, that is the API key from the Akismet account, that is the only key we can find in our Akismet account.

edalzell commented 3 years ago

@knieth can you please zip up your site (don't send the node_modules or vendor folder) and send to me?

thestepafter commented 2 years ago

@edalzell I have shared a Dropbox link directly with you for the site referenced by @knieth.

Thank you!

edalzell commented 2 years ago

@knieth @thestepafter while I can reproduce the issue, if I upgrade to Statamic 3.2 form submissions are correctly flagged as spam.

Are you able to upgrade to 3.2? You should as 3.1 is quite old.

knieth commented 2 years ago

@edalzell, confirmed that upgrading to 3.2 solved the issue, thank you.