Home Forums Porto Template recatcha v3 error

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #10031228
    vbokhonov
    Participant

    Hello.
    I’m trying to implement recaptcha V3 on my site. I did everything like you explain here http://www.okler.net/forums/topic/integrating-recaptcha-like-in-the-demo/ but the problem is with Token – I’m receiving error “reCaptcha Error: Invalid token. Please contact the website administrator.” I think thats because I’m not passing “g-recaptcha-response” from page with form to php/contact-form-recaptcha-v3.php
    Could you please instruct me.
    Thank you in advance.


    #10031230
    Support2
    Keymaster
    This reply has been marked as private.
    #10031237
    vbokhonov
    Participant
    This reply has been marked as private.
    #10031238
    vbokhonov
    Participant
    This reply has been marked as private.
    #10031239
    Support2
    Keymaster

    Hello,

    Ok.

    Changing the method in js/views/view.contact.js to get should works:

    ...
    ....
    type: 'get',
    ...
    ....

    Also, on the file contact-form-recaptcha-v3.php will be necessary change all $_POST['xxxxxx'] by $_GET['xxxxx'].

    Regarding switch to reCaptcha v2: Yes, you will face the same problems.

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    #10031243
    vbokhonov
    Participant

    Hello.
    Changing method to _GET did not help – I’m still getting “reCaptcha Error: Invalid token. Please contact the website administrator.” error 🙁


    #10031248
    Support2
    Keymaster

    Hello,

    Can you please share all code in your php/contact-form.php with us ? You can use a service like https://pastebin.com to generate a link and share with us.

    Kind Regards,

    Rodrigo.


    #10031252
    vbokhonov
    Participant
    This reply has been marked as private.
    #10031255
    Support2
    Keymaster

    Hello,

    We did a few tests here with $_GET and the contact form + recaptcha v3 works.

    Please do the following test to debug the $_GET:

    1) Add this code below in contact-form-recaptcha-v3.php:

    2) Open the page with contact form

    3) Open the Google Chrome Developer Tools (Crtl + Shift + I)

    4) Fill the form and send

    5) Look at the Network Tab in Developer Tools like the image below:

    * Check if [g-recaptcha-response] => is empty or not.

    If [g-recaptcha-response] => returns empty, probably it’s an issue with your server settings. In that case you need contact the support of your hosting provider.

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    #10031269
    vbokhonov
    Participant
    This reply has been marked as private.
    #10031271
    Support2
    Keymaster

    Hello,

    This seems to be a server issue. Probably related to your hosting plan limitation.
    Unfortunately we have no ways to help you on this, since it’s a server side issue. My suggestion for you is contact the hosting support again to discover why the _GET it’s not working.

    Let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 11 posts - 1 through 11 (of 11 total)