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

Support Thread for Google reCAPTCHA plugin

Views: 177,453

Results 641 to 660 of 696
19 Jun 2024, 2:10 PM
#641
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Support Thread for Google reCAPTCHA plugin

This code just needs to be updated for PHP8. Change

includes/classes/observers/class.google_recaptcha.php on line 40

to check

isset($_POST['g-recaptcha-response'])

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Jun 2024, 2:15 PM
#642
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

swguy:

This code just needs to be updated for PHP8. Change

includes/classes/observers/class.google_recaptcha.php on line 40

to check

isset($_POST['g-recaptcha-response'])

Thanks for your quick response! I'll change the code. :smile:

jpda

19 Jun 2024, 3:11 PM
#643
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

jpda:

Thanks for your quick response! I'll change the code. :smile:

jpda

Sorry, how should line 40 look after the correction?:unsure:
Now it is:

$resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);

TIA,

jpda

19 Jun 2024, 5:16 PM
#644
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

$resp = $recaptcha->verify($_POST['g-recaptcha-response'] ?? '', $_SERVER['REMOTE_ADDR']);

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Jun 2024, 5:34 PM
#645
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

@swquy
Thanks again!

jpda

29 Aug 2024, 4:21 PM
#646
torvista avatar

torvista

Totally Zenned

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

Re: Support Thread for Google reCAPTCHA plugin

Can you add the GitHub link to the Plugin page please:

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

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

29 Aug 2024, 6:37 PM
#647
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

Done. Thank you for adopting this plugin!

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

4 Sep 2024, 6:18 PM
#648
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Support Thread for Google reCAPTCHA plugin

I spoke too soon.

There are a number of files in your repo that don't belong in an installation. And you've made significant changes to the files that should be installed.

I generally expect the repo to match what's in the Plugins Library.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2024, 7:53 AM
#649
torvista avatar

torvista

Totally Zenned

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

Re: Support Thread for Google reCAPTCHA plugin

Yep, and all for free!

I lose enough time tweaking all these add-ons to also update the files in the plugins too.

Five minutes later I find something else to tweak/they are out of date very quickly: where a repository exists they should point to the repository and not offer an old, static download.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Oct 2024, 2:10 PM
#650
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for Google reCAPTCHA plugin

I've done this multiple times before but when I went to my recaptcha account, it's not letting me create a new site. When I click on the submit button, nothing happens. I'm just wondering if anyone else has seen this problem before. There is a google forum that hasn't had any activity in years. The help files certainly don't mention this.

As I recently upgraded several sites to zc 2.0.1, I have been waiting to see if the contact form would be more or less susceptible to abuse. One of those sites got hit last night, creating massive issues with the hosting company. So now I have a client who needs this today.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

18 Oct 2024, 11:24 AM
#651
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Support Thread for Google reCAPTCHA plugin

gothstone:

zc 1.5.8a, php 8.1.24, recaptcha 3.6a
While its working fine, when the contact us page is loaded it throws this error:

17-Oct-2023 00:37:46 America/Chicago] Request URI: /contact_us?action=send, IP address: 82.147.85.78, Language id 1
#0 /includes/classes/observers/class.google_recaptcha.php(40): zen_debug_error_handler()
#1 /includes/classes/traits/NotifierManager.php(87): google_recaptcha->update()
#2 /includes/modules/pages/contact_us/header_php.php(31): base->notify()
#3 /index.php(35): require('/home/pcs/publi...')
--> PHP Warning: Undefined array key "g-recaptcha-response" in /includes/classes/observers/class.google_recaptcha.php on line 40.

> Oddly the create account page does NOT do this.
> 
> Any suggestions would be greatly appreciated!

Same Zen Cart 2.0.1, PHP 8.3
18 Oct 2024, 2:13 PM
#652
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Support Thread for Google reCAPTCHA plugin

the latest version by @swguy, perhaps addresses this issue. i have not tested. the line versions look different.

i have addressed this issue (for the version that both of you seem to be running) in a different manner. change line 40 as such:

//from
$resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
//to
$resp = $recaptcha->verify($_POST['g-recaptcha-response'] ?? 'nothingPosted', $_SERVER['REMOTE_ADDR']);

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

8 Nov 2024, 11:50 AM
#653
torvista avatar

torvista

Totally Zenned

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

Re: Support Thread for Google reCAPTCHA plugin

In my version I checked previously that this post was already set, to set a corresponding error message.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Dec 2024, 3:38 PM
#654
ouxly40 avatar

ouxly40

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I followed every step in the readme file. I get "ERROR for site owner: Invalid site key". I deleted my key, started over - same thing. What did I overlook?

26 Dec 2024, 3:42 PM
#655
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

ouxly40:

I followed every step in the readme file. I get "ERROR for site owner: Invalid site key". I deleted my key, started over - same thing. What did I overlook?

That error indicates you did not register your domain with Google when creating your keys.

Jim
Wheaton Website Services

26 Dec 2024, 3:48 PM
#656
ouxly40 avatar

ouxly40

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

so how do I do that?

29 Dec 2024, 3:44 PM
#658
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

HI David,
I install this version of recaptcha in my cart 2.1.0 nothing added to the basic installation and now when I go to sign into admin I just get a white page. Ideas?
Thanks,
Mark:smile:

29 Dec 2024, 5:21 PM
#659
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

maperr55:

HI David,
I install this version of recaptcha in my cart 2.1.0 nothing added to the basic installation and now when I go to sign into admin I just get a white page. Ideas?
Thanks,
Mark:smile:

HI in looking at the test site I do not see any of the files from the uploaded includes folder.

29 Dec 2024, 5:33 PM
#660
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

HI here is what myDebug log says

[29-Dec-2024 17:22:04 UTC] PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47

[29-Dec-2024 17:22:04 UTC] Request URI: /test/bluFf-XFT-spRay/index.php?cmd=login&camefrom=index.php, IP address: 107.5.67.145
--> PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47.

[29-Dec-2024 17:22:04 UTC] Request URI: /test/bluFf-XFT-spRay/index.php?cmd=login&camefrom=index.php, IP address: 107.5.67.145
--> PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47.

THanks:smile: