Jump to content

Google recaptcha problem - whmcs 6.3


ribaron

Recommended Posts

3 hours ago, ribaron said:

Hello

im use whmcs 6.3 but i see this error on register page or contact page http://prntscr.com/i8x4ts

How can I solve this problem?

note : I do not want to whmcs version update.

regards ...

Hi @ribaron,

Please issue new API Credentials for Google ReCaptcha v2 and update these under Setup > General Settings > Security please note however that only 7 & above support Recaptcha 2 on Submit Tickets & Contact Form if you are not wanting to upgrade to V7.x you may be better changing to just generic Captcaha in the security Settings

Link to comment
Share on other sites

  • 2 months later...

Hi @ribaron,

i had the same problem. And i've solved the problem with the following code. Replace the code: 

{if $captcha eq "recaptcha"}
     {$recaptchahtml}
{else}

with the following code snippet:

{if $captcha eq "recaptcha"}
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
    <div id="google-recaptcha" class="g-recaptcha center-block" data-sitekey="{$reCaptchaPublicKey}"></div>
{else}

That works for me. 

Best, 
Giuliano

Link to comment
Share on other sites

  • 2 weeks later...

Hi, I found it and did work, the file is in templates/name_of_template(six in my case)/includes. But I would like to apply captcha only in the contact form (contact.php).

Thank you for any idea.

Lek

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated