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

Support Thread for Google reCAPTCHA plugin

Views: 176,318

Results 501 to 520 of 694
4 Feb 2021, 10:15 PM
#501
rick29690 avatar

rick29690

New Zenner

Join Date:
May 2009
Location:
Travelers Rest, SC
Posts:
22
Plugin Contributions:
0

Support Thread for Google reCAPTCHA plugin

Now that Google reCAPTCHA V3 is out, is there going to be an upgrade to incorporate? I'm using ZC 157b. Thanks.

4 Feb 2021, 11:53 PM
#502
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

Rick29690:

Now that Google reCAPTCHA V3 is out, is there going to be an upgrade to incorporate? I'm using ZC 157b. Thanks.
There's little reason to need v3. Even Google says don't use v3 unless your web app needs it.

Are you inquiring about v3 "just because it exists"? Or is there something about v3 that you need on your site? What is that?

6 Feb 2021, 6:33 PM
#503
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

reCaptcha is NOT working with 1.5.7b with Responsive Sheffield Blue v2 template

On the Contact Us page, the Subject line of the form does not appear but the program does check to make sure there is something there--resulting in it being impossible to complete.

Works as designed on the Create Account and Reviews pages.

I'm using Responsive Sheffield Blue v2 (most current) as the template. Replacing the default template file with the one in the reCaptcha distribution (i.e., /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php) caused the problem. Reverting to the Sheffield Blue template file fixed the subject line problem but now the Contact Us page doesn't have reCaptcha. And that's where I really needed it.

And yes, I added the v1.5.5 files (which are the same template file names) as instructed in the README file.

I'm not a php programmer so although I think I know what the problem is, I don't know how to fix it.

13 Mar 2021, 10:28 PM
#504
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Thank you all who are updating this plugin.

I am running 1.5.7c with the latest reCaptcha module. I have noticed that there is no reCaptcha for the "Ask a Question" page that is also connected in some way to a "contact us" page.

Thank you!

Shrimp

13 Mar 2021, 11:22 PM
#505
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

DrByte:

Probably some stupid quirk with FEC's use of CSS/JS Loader junk.

I realize the following comment is not helpful in immediately doing what the rest of your post talks about ... but it's worth mentioning:

The first thing I delete when I find it is FEC, and all the things it adds or depends on, especially "CSS/JS Loader" stuff. All of these cause nightmares for interoperability with other plugins, and for upgrades, and for troubleshooting things that "should" work but don't work when these things are present.

When you get around to upgrading the site to a newer version, look into OPC One Page Checkout as a better replacement.

It would be great if there was a post with all the plugins that you recommend.

Thank you,

Shrimp

14 Mar 2021, 12:16 AM
#506
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

shrimp-gumbo-mmmhhh:

It would be great if there was a post with all the plugins that you recommend.
My plugin recommendations: only the ones your business actually needs in order to serve the actual clearly-defined needs of your customers. And no added noise that would distract them. The fewer the better.

14 Mar 2021, 2:23 PM
#507
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

DrByte:

My plugin recommendations: only the ones your business actually needs in order to serve the actual clearly-defined needs of your customers. And no added noise that would distract them. The fewer the better.

Could you recommend a plugin that I could load more products to my website through a spreadsheet or datafeed file?

Thank you!

23 Mar 2021, 8:13 PM
#508
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

shrimp-gumbo-mmmhhh:

Thank you all who are updating this plugin.

I am running 1.5.7c with the latest reCaptcha module. I have noticed that there is no reCaptcha for the "Ask a Question" page that is also connected in some way to a "contact us" page.

Thank you!

Shrimp

I just had your same issue and I finally fixed it. To use reCaptcha in "ask a question" page, you need to adjust \includes\classes\observers\class.google_recaptcha.php Otherwise "ask a question" page will still show reCaptcha section but not in use.

Near line 24, add following code:

$pages_to_check[] = 'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';

Near line 40 below if (!$resp->isSuccess()) { Change the following code from:

$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');

To

$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'contact');

zc version is 157 with Observer bug fixed. reCAPTCHA version 3.4

3 Apr 2021, 3:54 PM
#509
millie63 avatar

millie63

New Zenner

Join Date:
Apr 2014
Location:
London
Posts:
22
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi
I am running zen cart V1.5.1 (I know I should upgrade but I still have to get round to doing it).
I'm trying to get Google's V2 reCaptcha ('I am not a robot') to work.
Can anyone please confirm whether Google reCAPTCHA CAPTCHA - Version: 3.4 is working on ZC V1.5.1 running php5.3 ?
I'm getting server error 500 upon sending the contact us form. My very expensive webhost (have a guess who that might be) are giving me the run-around saying they can't make sense of what's going on and asked me 'contact the developer of the script to preview the matter and suggest if a change in the code or server environment is required. If a change in the PHP settings is needed, provide us with his/her response, so we could verify if the change could be applied to the hosting environment.' I told them that this script is listed as working as compatible with both lower and higher versions of zen cart that run on both lower and higher versions than php5.3

Should I try another version of Google reCAPTCHA CAPTCHA perhaps? Maybe Version: 3.1?

Any help would be greatly appreciated.
thank you!
Millie

9 Apr 2021, 6:37 PM
#510
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

I have a version on GitHub I have fettled to death...

https://github.com/torvista/Zen_Cart-Google_reCAPTCHA

If your version is working on your site then let sleeping dogs lie/leave well alone/don't fix what is not broken.

If you are having problems, then please try this out on your development site and report any issues and feed back improvements on GitHub.

10 Apr 2021, 4:38 AM
#511
millie63 avatar

millie63

New Zenner

Join Date:
Apr 2014
Location:
London
Posts:
22
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hello Torvista
Thank you for your reply.
Can I try this version work on zen cart 1.5.1?
I am in the process of moving webhost and if it works i'll try it out as soon as I can and get back to you.
Thanks in advance for your answer
Regards
Millie

10 Apr 2021, 11:02 AM
#512
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

Can I try this version work on zen cart 1.5.1?
I wouldn't normally consider obsolete versions, but yes it now should work with all the 1.5x versions.

23 Apr 2021, 11:06 AM
#513
raindrop99 avatar

raindrop99

New Zenner

Join Date:
Dec 2020
Location:
UK
Posts:
6
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

torvista:

I have a version on GitHub I have fettled to death...

https://github.com/torvista/Zen_Cart-Google_reCAPTCHA

If your version is working on your site then let sleeping dogs lie/leave well alone/don't fix what is not broken.

If you are having problems, then please try this out on your development site and report any issues and feed back improvements on GitHub.

I've just installed your mod but can't get it working due to the site running PHP v5.6 (yeah I know but I can't upgrade)

The error is:

PHP Parse error: syntax error, unexpected ':', expecting '{' in /home/xxx/public_html/includes/functions/extra_functions/functions_google_recaptcha.php on line 42

Is there a workaround please?

23 Apr 2021, 2:16 PM
#514
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

As you correctly surmised, the culprit is your obsolete php 5.6.

You need to remove the ":string" from that line:

function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null): string {

to

function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null) {
25 Apr 2021, 10:17 AM
#515
raindrop99 avatar

raindrop99

New Zenner

Join Date:
Dec 2020
Location:
UK
Posts:
6
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

torvista:

As you correctly surmised, the culprit is your obsolete php 5.6.

You need to remove the ":string" from that line:

function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null): string {

> to
> ```
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null) {

Thanks - that got rid of the errors but now the recaptcha isn't working... I can submit forms on the site without ticking the Google checkbox? (not sure if it's related or not?)

25 Apr 2021, 8:30 PM
#516
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

I can submit forms on the site without ticking the Google checkbox
Any other debug logs?

25 Apr 2021, 8:35 PM
#517
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

I implemented this solution to reduce the small amount of spam being sent throught the contact us form.
I am getting more now. Can't say if that it just more attacks or the reCaptcha is getting bypassed.

26 Apr 2021, 10:43 AM
#518
raindrop99 avatar

raindrop99

New Zenner

Join Date:
Dec 2020
Location:
UK
Posts:
6
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

torvista:

Any other debug logs?

No nothing??

26 Apr 2021, 4:22 PM
#519
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

torvista:

I implemented this solution to reduce the small amount of spam being sent throught the contact us form.
I am getting more now. Can't say if that it just more attacks or the reCaptcha is getting bypassed.

For me, I notice my spam is reduced.... at least through the contact us form.

27 Apr 2021, 8:19 AM
#520
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

I added the POST reCaptcha response code to the extra info footer of the email we receive, and the spam ones do not have the response, so they are managing to get round it....more investigation needed.