I'm glad to hear that. And thanks for posting the result for the benefit of others.
Printable View
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....age=contact_us
I've also added my public and private keys from google.
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
to the following:Code:includes/functions/extra_functions/recaptchalib.php
which is probably not great, but there you go.PHP Code:
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";
}
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!
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.
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..