• Resolved Rodrigo

    (@vejapixel)


    Hello guys,

    I have activated Captcha to avoid spam comments as they were frequent.

    But I received complaints from users trying to comment but can’t.

    I did a test trying to comment (without being logged in), and the Captcha is really in trouble. I enter the data, type the mathematical result, but when I click on comment I’m redirected to the /wp-comments-post.php page with the message saying that I typed the wrong Captcha, but it’s correct: https://prnt.sc/uwhi3s

    So, I refresh the page, but I realized that the mathematical code doesn’t change.
    For example, Captcha shows me the mathematical calculation of 6 + 10, (https://prnt.sc/uwhlcf), so I type 16, but it shows me an error as I informed above. So I refresh the page and it still shows 6 + 10. I force the browser update with Ctrl + F5, however, it still shows 6 + 10. I clear the cache, and it still shows 6 + 10.

    Do you know tell me what’s going on?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, do you have a cache plugin installed in your site? Or do you have a cache system running in your server? If you do and you don’t configure them properly they can cause this type of issue.

    Thank you

    Thread Starter Rodrigo

    (@vejapixel)

    Yes, I have the WP-Rocket plugin.
    I cleared the cache via WP-Rocket and the numerical calculation was updated.

    What should the WP-Rocket configuration be like for it to work correctly as the captcha for All In One WP Security?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    Unfortunately I don’t use WP-Rocket cache plugin. You will have to work out what exclusion you have to add to your cache plugin in order for our captcha to work correctly.

    Let me know when you find out the solution. You might also like to share it here for others who might run into the same issue as you.

    Thank you

    Thread Starter Rodrigo

    (@vejapixel)

    I checked with the WP-Rocket team and they reported that your captcha will not be able to work with WP-Rocket because the captcha loads oem php on the page instead of javascript.

    See their answer:

    I am sorry about the issue!

    It looks like this captcha is not compatible with page caching.

    It seems to be using PHP code to generate the captcha for each page load, rather than JavaScript. It prints the result in the HTML that is being cached. You can see the screenshot of the source code here: https://jmp.sh/OyWhaE4
    At this point, the cache has to be cleared so that captcha can be updated again.

    It would need to use JavaScript in order to be compatible with page caching.

    You may consider using some other solution, like, for example, Google reCaptcha.

    There is also an Invisible reCaptcha solution that my teammates shared with our customers before. It should also be fully compatible with caching:
    https://developers.google.com/recaptcha/docs/invisible

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, thank you for providing more information. I have submitted a message to the developers to investigate further your issue.

    Thank you

    Thread Starter Rodrigo

    (@vejapixel)

    Thanks for listening!

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

The topic ‘Captcha with error’ is closed to new replies.