Zen Cart Logo
Forums / All Other Contributions/Addons / Support Thread for Google reCAPTCHA plugin

Support Thread for Google reCAPTCHA plugin

Views: 176,344

Results 321 to 340 of 694
3 Mar 2018, 9:16 PM
#321
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Support Thread for Google reCAPTCHA plugin

epilot:

Thank you very much for your help, lat9. It works in both "contact us' and 'create account'.

Could you please send me your information via PM on how to engage your services once Zen Cart v.1.6 is coming out.

Thank you again.
Woo-hoo! It's always something, right? PM sent.

4 Mar 2018, 7:16 PM
#322
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Will this work on a test installation on localhost?

The captcha is showing up OK, but when I click the send button on the contact form it keeps giving me a red warning Please verify that you are not a robot.

No errors are showing up in the log folder.

v155f

4 Mar 2018, 7:40 PM
#323
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

paul3648:

Will this work on a test installation on localhost?

The captcha is showing up OK, but when I click the send button on the contact form it keeps giving me a red warning Please verify that you are not a robot.

No errors are showing up in the log folder.

v155f
I've not found a work-around for the google-recaptcha's no-localhost requirement.

4 Mar 2018, 9:03 PM
#324
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

So I just tried this on my live site 155f php5.6 and got the same red "Please verify that you are not a robot."

I modified the class.google_recaptcha.php file to comment out Reviews and Create Account captchas, as I only want this on my contact form.

Tested it and got the red alert.

Then I removed the <?php echo recaptcha_get_html(false); ?> line from my contact form, tested again and still got the same alert, even though the captcha box was not on the page.

So I've removed all files for now.

Any ideas on how I can debug this? No errors are showing in the logs folder.

Thanks.

4 Mar 2018, 9:13 PM
#325
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

Try viewing your browser's "Console Log", since that recaptcha is javascript/JQuery-dependent.

4 Mar 2018, 9:33 PM
#326
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I'm back to localhost. Googles docs says localhost is allowed as long as it is declared as a domain.
https://developers.google.com/recaptcha/docs/domain_validation

No errors in the console.

I am assuming that the extra template files in the folder v155-only are not required, since I am using the tpl_contact_us_default.php file in my custom template folder.

Is that not correct? Should I also upload the v155-only files?

4 Mar 2018, 10:11 PM
#327
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

You'll need to merge the /includes/templates/YOUR_TEMPLATE/templates directory's template files with your custom template; there's only one line to be added in each.

4 Mar 2018, 10:27 PM
#328
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

OK Thanks for all your help. For whatever reason this is not working for me. With no error reports I can't pin down the problem.

9 Apr 2018, 11:10 AM
#329
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi I have just upgraded from Recaptcha v1 to v2 and I cannot even get the ReCaptcha to show. I have followed the instructions carefully for 1.5.3 and still no go

Please help. Web page in question is https://shaftlimited.com/index.php?main_page=login

9 Apr 2018, 11:24 AM
#330
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I get the following message despite adding the new API keys and the ```

<?php echo recaptcha_get_html(); ?>

***To use reCAPTCHA you must get an API key from <https://www.google.com/recaptcha/admin/create>***
9 Apr 2018, 11:32 AM
#331
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Actually sorted. I was upgrading as opposed in installing, but after uploading the files once again this worked fine.

16 May 2018, 8:03 AM
#332
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hey guys,

I have upgraded my captcha, and it stops working for account creation. It doesn't submit the form and keeps saying this on the top of the page when hit submit:
"NOTE: If you already have an account with us, please login at the login page."

This affects both my contact page and create account page:
http://www.simpleartsplanet.com/contact-us
http://www.simpleartsplanet.com/create-account

I looked at the log and found this entry:

PHP Warning:  implode(): Invalid arguments passed in /public_html/includes/classes/observers/google/ReCaptcha/Response.php on line 128

Can someone help take a look?

Thanks,
Lis

16 May 2018, 10:21 AM
#333
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

saplanet:

Hey guys,

I have upgraded my captcha, and it stops working for account creation. It doesn't submit the form and keeps saying this on the top of the page when hit submit:
"NOTE: If you already have an account with us, please login at the login page."

This affects both my contact page and create account page:
http://www.simpleartsplanet.com/contact-us
http://www.simpleartsplanet.com/create-account

I looked at the log and found this entry:

PHP Warning: implode(): Invalid arguments passed in /public_html/includes/classes/observers/google/ReCaptcha/Response.php on line 128

> 
> Can someone help take a look? 
> 
> Thanks,
> Lis

To add, I was able to receive new registrations until today. Do you know if it's google's side that is having an issue? 

I have checked with my host, they claim that there is nothing with the server-end.
16 May 2018, 10:26 AM
#334
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

saplanet:

To add, I was able to receive new registrations until today. Do you know if it's google's side that is having an issue?

I have checked with my host, they claim that there is nothing with the server-end.

I managed to resolved the problem by upgrading the PHP. :)

16 May 2018, 11:22 AM
#335
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Support Thread for Google reCAPTCHA plugin

saplanet:

I managed to resolved the problem by upgrading the PHP. :)
From what version to what version?

22 May 2018, 11:22 AM
#336
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Probably a dumb questions:
If I only want the recaptcha on the Contact Us and product Review pages (not on the register account page), can I simply only add the <?php echo recaptcha_get_html(); ?> line to the Contact and Reviews template pages, and leave everything else as it is?

I prefer not to have the recaptcha on the Registration page, as this does not seem to cause any spam, and I don't want to make it harder for people to register.

22 May 2018, 1:02 PM
#337
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

ttfan:

Probably a dumb questions:
If I only want the recaptcha on the Contact Us and product Review pages (not on the register account page), can I simply only add the <?php echo recaptcha_get_html(); ?> line to the Contact and Reviews template pages, and leave everything else as it is?

I prefer not to have the recaptcha on the Registration page, as this does not seem to cause any spam, and I don't want to make it harder for people to register.

Yes, you can put it on any page you want and leave it off any page you do not want.

24 May 2018, 11:10 AM
#338
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I've got it going on the PC, but the captcha is not displaying on a phone, and when I submit on the phone, it does complain that I need to show I'm not a robot... so it seems it's just not displaying.

I'm using the responsive sheffield blue theme...perhaps there's another file to edit?

25 May 2018, 10:10 AM
#339
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

lankeeyankee:

Yes, you can put it on any page you want and leave it off any page you do not want.
While this is true, it should probably be mentioned that if you don't put one on your create account page, you do need to make this modification, or it will fail the captch while it's not even there:

In /includes/modules/create_account.php you'll want to comment out the line $zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

I'm not sure if it's required to make a similar change to the Review page, if you don't put a capcha there...does anyone know?

25 May 2018, 10:48 AM
#340
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Support Thread for Google reCAPTCHA plugin

ttfan:

While this is true, it should probably be mentioned that if you don't put one on your create account page, you do need to make this modification, or it will fail the captch while it's not even there:

In /includes/modules/create_account.php you'll want to comment out the line $zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

I'm not sure if it's required to make a similar change to the Review page, if you don't put a capcha there...does anyone know?
Actually, instead of modifying the ZC default files it would be better to modify the observer class that this module uses to not listen for that notifier... while it is not necessarily expected there could be other programs that use that notifier for other purposes that would no longer be able to do what they do. Since the operation of this plugin is to be modified from its original, the plugin should be the one modified not the base file(s).