WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 reCAPTCHA Extension
Validation Errors Message (6 posts)

  1. Mike
    Member
    Posted 2 years ago #

    Hi,

    The plugin seems to work as advertised. Nice work.

    This is a relatively small problem, but it would be nice if I could get an answer: if I enter an invalid reCAPTCHA, the Validation Errors response from Contact Form 7 is shown, rather than a message saying it's an invalid reCAPTCHA.

    I've modified the error response in Contact Form 7 so that it hints that the problem might be caused an incorrect reCAPTCHA, but it would be nice if the error message was specific to the reCAPTCHA problem.

    So here's my question: Will this error be generated for any reason other than an invalid reCAPTCHA entry?

    If not, then it's easy enough to make the error response say to try the reCAPTCHA again. Otherwise, it would be nice if a specific error were provided for reCAPTCHA.

    Thanks,

    Mike

    http://wordpress.org/extend/plugins/contact-form-7-recaptcha-extension/

  2. Andre Pietsch
    Member
    Plugin Author

    Posted 2 years ago #

    Hey,

    sorry for my late reply. Some other projects needed my attention.

    I will have a look into it and will respond after some testing.

    Kind regards,

    Andre

  3. Pete
    Member
    Posted 2 years ago #

    I'm getting this error "Validation errors occurred. Please confirm the fields and submit it again." while I am logged in as Admin and the captcha is not displayed. From a private browser I see the captcha and it works and validates. If I remove the captcha shortcode from the contact form it works. What is the problem when I am logged in with validation?

  4. Pete
    Member
    Posted 2 years ago #

    Also if I uncheck all options for Hide the CAPTCHA for, and make it display for me as an Admin it then works. So the problem has to do with the captcha being hidden.

  5. jinoOM
    Member
    Posted 1 year ago #

    Hello angio,
    i had the same problem and i solved this way:
    in file includes/CF7reCAPTCHA.class about on line 573, just at the beginning of the mothod 'recaptcha_validation_filter' add following code enclosed by /*mod*/:

    function recaptcha_validation_filter( $result, $tag ) {
    		/*mod*/
    			if( ($this->recaptcha_tool === CF7reCAPTCHA::RECAPTCHATOOL_BWP_RECAPTCHA
                        && $bwp_capt->user_can_bypass() )
                        ||
                        ($this->recaptcha_tool === CF7reCAPTCHA::RECAPTCHATOOL_WP_RECAPTCHA
                        && $this->wp_recaptcha_user_can_bypass() )) {
    				return $result;
    			}
    		/*mod*/

    Maybe Andrea can come up with a more elegant solution...

  6. Pete
    Member
    Posted 1 year ago #

    Thanks jinoOM, today I actually removed BWP and installed WP reCaptcha, also removed the BMP CF7 extension and used the regular reCaptcah extension. It's working now but you're code looks like it would also do just fine. Thanks again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic