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

Support Thread for Google reCAPTCHA plugin

Views: 176,327

Results 421 to 440 of 694
23 Apr 2019, 4:10 AM
#421
jeking avatar

jeking

Totally Zenned

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

Support Thread for Google reCAPTCHA plugin

Bumpo:

Thank you! Replacing that file with this new one seemed to do the trick!

I'm glad to hear that. And thanks for posting the result for the benefit of others.

3 May 2019, 1:43 PM
#422
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Support Thread for Google reCAPTCHA plugin

I am having a problem getting this to work. The store is in a sub-directory, so I am unsure if this is the issue? Also another issue that springs to mind is does it reply on GD libraries or some other element being loaded into PHP?

I've temprarily disabled the module on the create account page for this site, however you can see my issue on the url below.

http://deep-ideas.co.uk/Store/index.php?main_page=contact_us

I've also added my public and private keys from google.

3 May 2019, 5:45 PM
#423
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

Nick1973:

I am having a problem getting this to work. The store is in a sub-directory, so I am unsure if this is the issue? Also another issue that springs to mind is does it reply on GD libraries or some other element being loaded into PHP?

I've temprarily disabled the module on the create account page for this site, however you can see my issue on the url below.

http://deep-ideas.co.uk/Store/index.php?main_page=contact_us

I've also added my public and private keys from google.

Subdirectory is not an problem. It does not rely on GD libraries.

The problem looks to be installation of your Google CAPTCHA account. Did you create a v2 or v3? It has to be version 2, the check-box type.

7 May 2019, 10:39 AM
#424
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Support Thread for Google reCAPTCHA plugin

jeking:

Subdirectory is not an problem. It does not rely on GD libraries.

The problem looks to be installation of your Google CAPTCHA account. Did you create a v2 or v3? It has to be version 2, the check-box type.

That I don't know. I will check

12 Jun 2019, 12:14 PM
#425
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 David,
I've got multiple languages (English, Japanese) on my site, and browser detection does not work. I've had to change the reCaptcha code in

includes/functions/extra_functions/recaptchalib.php
``` to the following:
```php
if ($_SESSION['languages_id'] == 1) {
$recaptcha_html.='<script src="https://www.google.com/recaptcha/api.js" async defer></script>'."\n";
}
if ($_SESSION['languages_id'] == 3) {
$recaptcha_html.='<script src="https://www.google.com/recaptcha/api.js?hl=ja" async defer></script>'."\n";
}
``` which is probably not great, but there you go.
18 Jun 2019, 10:26 PM
#426
bluetooth avatar

bluetooth

New Zenner

Join Date:
Sep 2005
Posts:
76
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Why would I be getting these errors in my error logs..

18-Jun-2019 17:11:43 America/New_York] PHP Fatal error: Class 'ReCaptcha\ReCaptcha' not found in /usr/home//public_html/***/includes/classes/observers/class.google_recaptcha.php on line 37

[18-Jun-2019 17:11:43 America/New_York] Request URI: /index.php?main_page=create_account, IP address: ********
--> PHP Fatal error: Class 'ReCaptcha\ReCaptcha' not found in /usr/home//public_html/***/includes/classes/observers/class.google_recaptcha.php on line 37.

Thanks!

18 Jun 2019, 10:32 PM
#427
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

bluetooth:

Why would I be getting these errors in my error logs..

18-Jun-2019 17:11:43 America/New_York] PHP Fatal error: Class 'ReCaptcha\ReCaptcha' not found in /usr/home//public_html/***/includes/classes/observers/class.google_recaptcha.php on line 37

[18-Jun-2019 17:11:43 America/New_York] Request URI: /index.php?main_page=create_account, IP address: ********
--> PHP Fatal error: Class 'ReCaptcha\ReCaptcha' not found in /usr/home//public_html/***/includes/classes/observers/class.google_recaptcha.php on line 37.

Thanks!

First thought is to check that all the installation files have been uploaded to the correct place. If they are, you should not be getting that error.

19 Jun 2019, 6:38 AM
#428
swguy avatar

swguy

Administrator

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

Re: Support Thread for Google reCAPTCHA plugin

Jim is right - this mod does work, so my guess would be that in your site, the folder includes/classes/observers/google/ReCaptcha is missing or damaged.

13 Jul 2019, 4:11 PM
#429
daginter avatar

daginter

New Zenner

Join Date:
Jul 2019
Location:
USA
Posts:
2
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I have version 1.5.5b I installed it and it seemed to be working for the Create Account page.
I did not install it for Contact us as we have that page turned off and only give a phone number.

The next day I checked and many accounts were still being created..
The reCaptcha area is working in talking to Google but is not functioning with the Create Account Button.

So I added: $zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');
to the /includes/modules/classic/create_account.php per instructions for version 1.5.1 4c:

So now it will say that the reCAPTCHA is not checked which is good, but when you do have it checked It will not create the account.
It just reloads the create account page, it acts like it is successful but I checked in PHP and the account is not being created.

So in the create_account.php file is there another piece of code I need to put in for it to finish creating the account.

13 Jul 2019, 5:55 PM
#430
daginter avatar

daginter

New Zenner

Join Date:
Jul 2019
Location:
USA
Posts:
2
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

daginter:

I have version 1.5.5b I installed it and it seemed to be working for the Create Account page.
I did not install it for Contact us as we have that page turned off and only give a phone number.

The next day I checked and many accounts were still being created..
The reCaptcha area is working in talking to Google but is not functioning with the Create Account Button.

So I added: $zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');
to the /includes/modules/classic/create_account.php per instructions for version 1.5.1 4c:

So now it will say that the reCAPTCHA is not checked which is good, but when you do have it checked It will not create the account.
It just reloads the create account page, it acts like it is successful but I checked in PHP and the account is not being created.

So in the create_account.php file is there another piece of code I need to put in for it to finish creating the account.

UPDATE:
I just figured it out... for some reason.
This code was in the page in two spots: $zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');
The original spot it was in was not working and I didn't check first to see if the code was already in the page..

So I had to leave it in the spot where I had added it to from instructions 1.5.1
Then I removed it from the page where it was in at the top..

22 Jul 2019, 9:01 PM
#431
iluna avatar

iluna

New Zenner

Join Date:
Feb 2019
Location:
usa
Posts:
4
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Im sure that this has been answered before, but I have no luck in finding this using google search, and this thread has over 23 pages to search from....

I installed the plugin 'Google reCAPTCHA for Zen Cart v3.4' on 'Zen Cart v1.3.7.1', using the instructions for Instalation for Zen Cart Versions prior to 1.5.1 and a little refactoring to remove namespace as the client is using php4. I am aware that its an old version, and advicing me to update is not a good answer, unless you know for sure that this will not work on php4. I got it to load on the contact us page but the captcha is not verifying the captcha. The form is submitable when the box is completely ignored. I skimped some of the answers here but they have not worked, does anyone have any experience with this, the solution is deffinitely a big plus.

23 Jul 2019, 2:40 AM
#432
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

iluna:

Im sure that this has been answered before, but I have no luck in finding this using google search, and this thread has over 23 pages to search from....

Such an old set-up, you won't like my answer, so I'll keep it to myself. Using Zen Cart 1.3.7.1 and PHP4 is simply too old for me to even be able to troubleshoot.

23 Jul 2019, 3:15 PM
#433
iluna avatar

iluna

New Zenner

Join Date:
Feb 2019
Location:
usa
Posts:
4
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

jeking:

Such an old set-up, you won't like my answer, so I'll keep it to myself. Using Zen Cart 1.3.7.1 and PHP4 is simply too old for me to even be able to troubleshoot.

Do you have any resources that you would recommend that might help with this? my assumption is that something in the header is not verifying the response from google. But my knowledge in zen cart is pretty limited at the moment.

23 Jul 2019, 3:45 PM
#434
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

iluna:

Do you have any resources that you would recommend that might help with this? my assumption is that something in the header is not verifying the response from google. But my knowledge in zen cart is pretty limited at the moment.

I'm sorry, I don't. I don't have php4 installed anywhere to even test.

5 Sep 2019, 7:15 PM
#435
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I installed this and everything looks good. But when I attempt to test it NOT CHECKING recaptcha box, the message is sent successfully

5 Sep 2019, 9:07 PM
#436
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

pixelpadre:

I installed this and everything looks good. But when I attempt to test it NOT CHECKING recaptcha box, the message is sent successfully

Please read the posting guidelines. You have not provided enough information for me or anyone else to help you out.

5 Sep 2019, 9:13 PM
#437
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

So Jim what is it exactly that you think is the critical missing tidbit of info that you need, since the plugin is compatible with all versions from 1.39?

5 Sep 2019, 9:30 PM
#438
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

The installation varies based upon the Zen Cart version you have so I can't possibly suggest what you did wrong unless you share what version, what steps you followed, what you have tried, any error logs, PHP version, did you check for template override files,....

5 Sep 2019, 9:40 PM
#439
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I had some 2 files that I had overwritten by mistake. works great. It was working on all of my other sites. so I decided to check each file of the add-on.

5 Sep 2019, 9:46 PM
#440
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

Glad it's working for you now. Thanks for the update.