• I’ve got this error using um recaptcha plugin + registration on google v2 checkbox. It was working for few weeks but one day i’ve got The response parameter is invalid or malformed. and noone could register and or login. So i’ve deleted the plugin. So, should i leave it deleted or you tell me what is the problem?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @qnkov

    Did you check if the Secret Keys are correct in the UM Settings? Also, what version of ReCaptcha are you using?

    Regards,

    Thread Starter qnkov

    (@qnkov)

    Of course. It was working, as i sayed. Evertyhing was ok, till one day it wasn’t. I’ve tried with last plugin of recaptcha too, same thing. But my ultimate member is half year old or so. But that should not be the problem anyway.

    Is there anyway to add a question for register form? Looks like this repatcha isn’t working anymore for me.

    • This reply was modified 3 years, 7 months ago by qnkov.
    • This reply was modified 3 years, 7 months ago by qnkov.
    • This reply was modified 3 years, 7 months ago by qnkov.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @qnkov

    This response from the Recaptcha means that there’s an issue with the keys:
    >>> The response parameter is invalid or malformed.

    Have you tried creating new keys and see if the issue still occurs? Also, can you please confirm what version of ReCaptcha you’re using? Is it version 2 or 3?

    Regards,

    Thread Starter qnkov

    (@qnkov)

    Everything was correct, i even added my site and secret key again, but they are the same. I was recaptcha v3 if i’m not wrong where you click ?’m not robot”. But i had this issue for 1 week before i found about it, and lost alot of new register users. So i think about skipping this. So please, if you can tell me, if i can add question to answer for register.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @qnkov

    Unfortunately, there’s no functionality about the “question to answer”. You will have to create a custom field validation for a text field to achieve this.
    https://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field

    We’ll take a closer look at this issue with UM ReCaptcha.

    Regards,

    Thread Starter qnkov

    (@qnkov)

    Hi, @champsupertramp can you explain me more how to do this, cuz i’m not sure what i’m doing.

    I’ve added in my theme’s function.php this:

    /**
     * Validate field Mobile Number
     * @param string $key
     * @param attay  $array
     * @param array  $args
     */
    function um_custom_validate_mobile_number( $key, $array, $args ) {
    	if ( isset( $args[$key] ) && !preg_match('/^[6-9]\d{9}$/', $args[$key]) ) {
    		UM()->form()->add_error( $key, __( 'Please enter valid Mobile Number.', 'ultimate-member' ) );
    	}
    }
    add_action( 'um_custom_field_validation_mobile_number', 'um_custom_validate_mobile_number', 30, 3 );

    What else i need to do, to make this as question and certain answer.

    • This reply was modified 3 years, 7 months ago by qnkov.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @qnkov

    1. Create a new field with field key ‘question_answer’
    2. In the field settings, choose “Custom Validation” in the “Validate” option.
    3. It will show the “Custom Action” – Enter the key ‘question_answer’ in that field.
    4. Add the following code in your theme’s functions.php file or use the Code Snippets plugin:

    function um_custom_validate_question_answer( $key, $array, $args ) {
    	if ( isset( $args[$key] ) && $args[$key]  != 'IM HUMAN' ) {
              UM()->form()->add_error( $key, __( 'Please enter valid Answer.', 'ultimate-member' ) );
        } 
    }
    add_action( 'um_custom_field_validation_question_answer', 'um_custom_validate_question_answer', 30, 3 );

    `
    5. Once you’ve added the PHP code, go to the Register page and try entering the answer IM HUMAN.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter qnkov

    (@qnkov)

    Hi, https://prnt.sc/11gknml

    Check picture. Which box to chose? Textarea, textbox? And should i use the bracers with ‘question_answer’ or without them when i insert? Thanks.

    Thread Starter qnkov

    (@qnkov)

    @champsupertramp , any future help about this ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘The response parameter is invalid or malformed.’ is closed to new replies.