• Resolved ericvlach

    (@ericvlach)


    I installed the plugin v1.64, set the site key and secret key, enabled on comments and forgot password, but the captcha isn’t showing up on the comments form.

    I already disabled all other plugins, there are no plugins running other than the reCaptcha one.

    The recaptcha test in the settings works fine, as does the ‘forgot password’ page.

    See https://statmoddev.stat.columbia.edu/wp-login.php?action=lostpassword (working on password reset)

    and https://statmoddev.stat.columbia.edu/2021/06/24/trash-talkin/ (not working on comments)

    On the post page, now when I try to submit a comment, I get “Error: You have entered an incorrect reCAPTCHA value. Click the BACK button on your browser and try again.”

    Any ideas what to try next?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    First of all, check the browser console for errors. All errors should be fixed as they can cause problems with reCaptcha work.

    Our plugin uses the following hooks to display reCaptcha: ‘comment_form_after_fields’ and ‘comment_form_logged_in_after’ that are present in the standard WordPress ‘comment_form()’ function.

    If your theme doesn’t use that function to display the comment form, you should complete the following steps:

    Open the file with the form (where you would like to add reCaptcha);
    Find a place to insert the code for the reCaptcha output;
    Then you should add:

    <?php echo apply_filters( ‘gglcptch_display_recaptcha’, ”, ‘comments_form’ ); ?>

    Thread Starter ericvlach

    (@ericvlach)

    Thanks, this helped me solve it! I don’t have a custom comment_form in my functions, but with your filter suggestion I found this help page: https://support.bestwebsoft.com/hc/en-us/articles/202352499-How-to-add-reCaptcha-plugin-to-a-custom-form-on-my-WordPress-website-

    I got the custom form to display on the recaptcha settings page, but then it wouldn’t properly display on the comments form. Nonetheless, adding <?php echo apply_filters( ‘gglcptch_display_recaptcha’, ” ); ?> (without specifying a custom comment form name) solved my issue.

    If you could help me with one more thing – I can’t find where to put the custom error message. From your support article above, in step 5, it says to “add the following lines to the function of the entered data checking.” I don’t know what the “function of the entered data checking” is. Can you help me pinpoint that function? Right now, if I fail the captcha, I get “user response is missing”, instead of something more useful like “Captcha failed”

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    To solve your problem, please contact us via our Help Center (https://support.bestwebsoft.com/)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Captcha not appearing on comments’ is closed to new replies.