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

Support Thread for Google reCAPTCHA plugin

Views: 177,471

Results 661 to 680 of 696
29 Dec 2024, 6:12 PM
#661
torvista avatar

torvista

Totally Zenned

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

Support Thread for Google reCAPTCHA plugin

I redid this plugin ages ago in my Github, perhaps you'd have better luck with that.

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

30 Dec 2024, 12:53 AM
#662
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 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:

HI Dave, I copied the files into the locations they should of went when I uploaded them and got my admin login page working again. I do not see the recaptcha on the contact page though. So what am I missing?:smile:

30 Dec 2024, 2:58 AM
#663
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 Dave,
I have already tried to install the other recaptcha. Do I need to remove it? Or just install yours over top of it?
Man it looks like a complex installation. Not sure where to place some of the code edits.
Thanks,
Mark

30 Dec 2024, 10:20 PM
#664
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

Either use the Plugin version or my Github version but don't mix the files: they are very different, obviously.

If there is something unclear about my instructions, please detail the doubt in an Issue in the repository.

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

1 Jan 2025, 3:48 AM
#665
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 Steve,
I won't mix them. Guess I will have to go with the plugin version since the files are installed. What would be a reason the recaptcha does not show on the page?
Thanks, Happy New Year.
Mark

18 Jan 2025, 9:28 AM
#666
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

Note I fixed a bug in this yesterday.

It irks me you apparently didn't get it to work...that's my efforts to share wasted, hence I'm always interested in solving issues...which are always solvable.

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

12 Feb 2025, 9:58 PM
#667
cognecy avatar

cognecy

New Zenner

Join Date:
May 2022
Location:
McKinney, TX
Posts:
5
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Would it be possible to include reCAPTCHA on the Login and possibly even the Checkout?
Why? I have a customer that has been getting hit with a card tester bot (couple thousand fake accounts and $0.25 transactions)
Thinking reCAPTCHA could be a good road-block but it seems the only option on this plugin is for New Account Creation.

13 Feb 2025, 11:18 AM
#668
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

You could add it to any page.

Since users have to be logged in to purchase, they would have already passed the recaptha on the login/would not make sense to add it to the checkout too.

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

13 Feb 2025, 4:03 PM
#669
cognecy avatar

cognecy

New Zenner

Join Date:
May 2022
Location:
McKinney, TX
Posts:
5
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Thank you for responding and your point about the Checkout makes perfect sense.

You stated I could add it to any page but I guess I where my concern is based is the [class.google_recaptcha.php] file does not specify a path for the Login (we only get Contact, Create Account, and Reviews).

This customer has 2 stores with one using the default checkout and the other using the One Page Checkout... not sure if that would matter.

If I were to add this [<?php echo recaptcha_get_html(false); ?>] to the tpl_login_default.php page just before the submit button would it work properly without a link/path in the class file mentioned above?

17 Feb 2025, 9:39 AM
#671
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

...and?

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

25 Feb 2025, 10:41 AM
#672
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

ZC v2.1.0, PHP 8.2, OPC 2.5.4
Using the latest (as of today) reCAPTCHA version from github.

Attempting to add reCAPTCHA to OPC's create_account_register page. Although create_account_register 'uses' includes/modules/pages/create_account it has its own header.php file of header_php_create_account_register.php and as such the reCAPTCHA process gives a blank page when creating a registered account, as can be seen from the logs below.

I am comfortable adding new instances of say CREATE_ACCOUNT_REGISTER, if necessary, but what code would I need for the mod to recognise header_php_create_account_register.php?

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1, Language id 1
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php(52): zen_debug_error_handler()
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php(52): require()
#2 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update()
#3 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify()
#4 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\\wamp64\\www\\k...')
--> PHP Warning: require(D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php): Failed to open stream: No such file or directory in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.

[25-Feb-2025 10:09:51 Europe/London] PHP Fatal error:  Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\\wamp64\\www\\k...')
#3 {main}
  thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\\wamp64\\www\\k...')
#3 {main}
  thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\\wamp64\\www\\k...')
#3 {main}
  thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.

Simon

25 Feb 2025, 11:17 AM
#673
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

simon1066:

ZC v2.1.0, PHP 8.2, OPC 2.5.4
Using the latest (as of today) reCAPTCHA version from github.

Attempting to add reCAPTCHA to OPC's create_account_register page. Although create_account_register 'uses' includes/modules/pages/create_account it has its own header.php file of header_php_create_account_register.php and as such the reCAPTCHA process gives a blank page when creating a registered account, as can be seen from the logs below.

I am comfortable adding new instances of say CREATE_ACCOUNT_REGISTER, if necessary, but what code would I need for the mod to recognise header_php_create_account_register.php?

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1, Language id 1
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php(52): zen_debug_error_handler()
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php(52): require()
#2 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update()
#3 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify()
#4 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\wamp64\www\k...')
--> PHP Warning: require(D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php): Failed to open stream: No such file or directory in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.

[25-Feb-2025 10:09:51 Europe/London] PHP Fatal error: Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\wamp64\www\k...')
#3 {main}
thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\wamp64\www\k...')
#3 {main}
thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.

[25-Feb-2025 10:09:51 Europe/London] Request URI: /create-account, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Failed opening required 'D:/wamp64/www/MY_DOMAIN.co.uk/includes/classes/vendors/Google/recaptcha/src/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php:52
Stack trace:
#0 D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\traits\NotifierManager.php(106): zcObserverGoogleRecaptchaObserver->update(Object(notifier), 'NOTIFY_CREATE_A...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 D:\wamp64\www\MY_DOMAIN.co.uk\includes\modules\pages\create_account\header_php_create_account_register.php(38): base->notify('NOTIFY_CREATE_A...')
#2 D:\wamp64\www\MY_DOMAIN.co.uk\index.php(35): require('D:\wamp64\www\k...')
#3 {main}
thrown in D:\wamp64\www\MY_DOMAIN.co.uk\includes\classes\observers\auto.google_recaptcha_observer.php on line 52.


Just re-read the error logs and I think I cleared the vendors/google/recaptcha folder when I did this recent upgrade, I'll check. This post was not needed.

Simon

1 Jun 2025, 2:59 PM
#674
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi Simon,
I think you may be right - I downloaded v3.8 from Torvista's github repository also, and see that the vendors/Google/recaptcha directory is actually empty. Not sure what the reason for this is, but I followed the README.md instructions to obtain the files from Google's github, and applied the mentioned correction.

/includes/classes/vendors/Google/recaptcha

In here are the set of files from the Google reCAPTCHA library on GitHub: https://github.com/google/recaptcha

The current version included here is tag v1.3.0 (newer versions may be available).

All files are unmodified, bar one: ReCaptcha.php, which has minor fixes for php 8.4

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

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

1 Jun 2025, 3:17 PM
#675
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

To be clear, the entire contents of https://github.com/google/recaptcha/tree/master/src (file autoload.php and directory ReCaptcha) needs to be placed in ```
includes/classes/vendors/Google/recaptcha/

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

2 Jun 2025, 8:57 AM
#676
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

vendors/Google/recaptcha directory is actually empty. Not sure what the reason for this is
Me neither, Gitkraken would not "see" it to upload it. I could not include it as a submodule as it needs a fix for php8.4.
I've now included it as a differently-named folder, and updated the readme.

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

11 Jul 2025, 11:10 AM
#677
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi there

I need some assistance in figuring out where to put my <?php echo recaptcha_get_html(false); ?> line of code in on the 4 files that are on my server.

let me explain. I am using ZC version 1.5.8a and the template is the bootstrap.

So, these are the 4 files that i need to add the code to:
a. tpl_contact_us_default.php
b. tpl_modules_create_account.php
c. tpl_product_reviews_write_default.php
d. tpl_ask_a_question_default.php

Although the instructions do tell you where the code goes, they are vague and i really dont want to mess up anything here.

Can anyone assist me on this please?

Thank you

11 Jul 2025, 3:25 PM
#678
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

amebb:

Hi there

I need some assistance in figuring out where to put my <?php echo recaptcha_get_html(false); ?> line of code in on the 4 files that are on my server.

let me explain. I am using ZC version 1.5.8a and the template is the bootstrap.

So, these are the 4 files that i need to add the code to:
a. tpl_contact_us_default.php
b. tpl_modules_create_account.php
c. tpl_product_reviews_write_default.php
d. tpl_ask_a_question_default.php

Although the instructions do tell you where the code goes, they are vague and i really dont want to mess up anything here.

Can anyone assist me on this please?

Thank you

Or cal anyone tell me what line i need to place the code on please for each file?

Thank you

11 Jul 2025, 5:53 PM
#679
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

There are examples in the updated version on Github.

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

11 Jul 2025, 9:34 PM
#680
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

torvista:

There are examples in the updated version on Github.

Thank you
I will have a look and see if i can understand how it can be done on my site.