Author Topic: Captcha not showing in the Registration Form  (Read 1516 times)

mausci1969

  • Beginner
  • *
  • Posts: 23
  • Skype Name: mausci69
Captcha not showing in the Registration Form
« on: January 14, 2017, 10:56:27 am »
I saw many posted having a problem with this, meaning Captcha not showing in the Registration Page, but didn't find any resolutive answer. I tried 1.0 and 2.0 and nothing changed. Any idea?

Joomla 3.6.5
VM 3.0.4

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26841
  • Always on vacation
    • Jenkin Hill Internet
Re: Captcha not showing in the Registration Form
« Reply #1 on: January 14, 2017, 12:01:37 pm »
VM 3.0.4

Really??  That is 2 years old. Current is 3.0.18.x.  http://forum.virtuemart.net/index.php?topic=118683.0

Assuming that you use a current VM version,  the ReCaptcha plugin is enabled in Joomla with the relevant keys, that "Use ReCaptcha for Registration" is turned on in VM Configuration/Shop then you should see the ReCaptcha on the registration page.

Of course, this does assume that, if you use template overrides, the overrides do contain the captcha code.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM.3.2.15.9866 on Joomla 3.8.8 PHP 7.0.30

Testing VM.3.2.15.9866 on J3.8.8

cback

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Captcha not showing in the Registration Form
« Reply #2 on: March 29, 2018, 11:13:48 am »
Hi there, I pray someone can help me.  I have absolutely no idea whatsoever about Virtuemart.  Since my divorce I have to maintain my own website but have no clue about any of it, so it appears that since yesterday customers cannot register or log in correctly.  The Captcha thingy is missing for some reason... 

Does anybody have any ideas on how to fix it? From what I am apparently running version 3.2.2.  And what I have seen just from looking around is that the plugin Captcha-reCaptcha is version 1.0. Well that's what's selected.  I can also choose 2.0 but God knows what that will do  :-\  Can't have my site not being functional.

Registration form image is attached.

Thanks for any help, it would be greatly appreciated.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26841
  • Always on vacation
    • Jenkin Hill Internet
Re: Captcha not showing in the Registration Form
« Reply #3 on: March 29, 2018, 12:27:09 pm »
From Google:  reCAPTCHA V1 has been deprecated since May 2016 and from March 31, 2018 this will no longer work.  So looks like they turned it off already. You should switch to version 2.0 - I have used 2.0 for around 3 years now with no issues. I'm not sure if you will need a different site & secret key, but if you do I'm sure you will see an error message (from Google).

If you need new keys go to https://www.google.com/recaptcha

I'm pretty sure you are just the first of many users finding reCaptcha in not working.......
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM.3.2.15.9866 on Joomla 3.8.8 PHP 7.0.30

Testing VM.3.2.15.9866 on J3.8.8

cback

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Captcha not showing in the Registration Form
« Reply #4 on: March 29, 2018, 12:34:23 pm »
Thank you very much Kelvyn for your speedy reply.  I did go and get the new keys as suggested.  Do I just copy and paste them in the Plugin section after selecting version 2?

Google also mentions the following about client side and server side intregration - is this something I need to do as well?  If so, where do I find these files I need to edit?


Step 1: Client side integration

Paste this snippet before the closing </head> tag on your HTML template:
<script src='https://www.google.com/recaptcha/api.js'></script>
Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:
<div class="g-recaptcha" data-sitekey="6Lcfrk8UAAAAAIEcu3WLIf9_J38XeywcOj5f-j6A"></div>
The reCAPTCHA documentation site describes more details and advanced configurations.

Step 2: Server side integration

When your users submit the form where you integrated reCAPTCHA, you'll get as part of the payload a string with the name "g-recaptcha-response". In order to check whether Google has verified that user, send a POST request with these parameters:
URL: https://www.google.com/recaptcha/api/siteverify

secret (required) 6Lcfrk8UAAAAAOpvCKM0UrlkHkAAkWC4URVsb-XF
response (required) The value of 'g-recaptcha-response'.
remoteip The end user's ip address.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26841
  • Always on vacation
    • Jenkin Hill Internet
Re: Captcha not showing in the Registration Form
« Reply #5 on: March 29, 2018, 13:10:54 pm »
Just copy & paste the keys into the boxes in the plugin. Then just save, no need to do anything else as the code will already be in the site pages.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM.3.2.15.9866 on Joomla 3.8.8 PHP 7.0.30

Testing VM.3.2.15.9866 on J3.8.8

cback

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Captcha not showing in the Registration Form
« Reply #6 on: March 29, 2018, 13:36:41 pm »
Brilliant! It works :) Thank you so much!

cback

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Captcha not showing in the Registration Form
« Reply #7 on: June 07, 2018, 08:51:11 am »
Ok so I'm back again.  It seems that for some weird reason Captcha has vanished from the page just like that.  I have gone and gotten new keys again, the plugin is enabled but cannot get the plugin to actually be displayed.

Anyone any ideas?  Have not changed a thing since it was working in the past.


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26841
  • Always on vacation
    • Jenkin Hill Internet
Re: Captcha not showing in the Registration Form
« Reply #8 on: June 07, 2018, 10:37:05 am »
You say you have changed nothing, but you should have updated Joomla and VM since March (now at J3.8.8 and VM3.2.14) so double check configurations.

Check the code of the displayed page in case you now have the Invisible reCaptcha!
https://developers.google.com/recaptcha/docs/invisible
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM.3.2.15.9866 on Joomla 3.8.8 PHP 7.0.30

Testing VM.3.2.15.9866 on J3.8.8