Re: Support Thread for Google reCAPTCHA plugin
Regarding this error
Quote:
Invalid argument supplied for foreach()
It's complaining about the content of $reCaptchaKeys which is defined by what you have replaced in this line:
PHP Code:
$reCaptchaKeys[] = ['domain' => 'www.yoursite.com', 'sitekey' => 'ENTER_YOUR_SITE_KEY_HERE', 'privatekey' => 'ENTER_YOUR_PRIVATE_KEY_HERE'];
There are three components in that line, something is wrong there.
If you revert to the original as above your should see the same error on the shop, but no debug, indicating that the error is indeed there.
Re: Support Thread for Google reCAPTCHA plugin
HTML Code:
Is this is a replacement to previous versions of reCaptcha? or an alternative to? for download here? This is alternative to the Numinix version, of which I was not even aware. I couldn't tell you which may be "better".
I posted my original question about V3 in a new support thread titled V3 and you posted I shouldnt have started a new thread. Perhaps open the other thread since my question doesnt pertain to your version.
Re: Support Thread for Google reCAPTCHA plugin
Quote:
Originally Posted by
torvista
Regarding this error
It's complaining about the content of $reCaptchaKeys which is defined by what you have replaced in this line:
PHP Code:
$reCaptchaKeys[] = ['domain' => 'www.yoursite.com', 'sitekey' => 'ENTER_YOUR_SITE_KEY_HERE', 'privatekey' => 'ENTER_YOUR_PRIVATE_KEY_HERE'];
There are three components in that line, something is wrong there.
If you revert to the original as above your should see the same error on the shop, but no debug, indicating that the error is indeed there.
Is this in the functions_google_recaptcha.php?
Re: Support Thread for Google reCAPTCHA plugin
Quote:
Is this in the functions_google_recaptcha.php?
Yes. It is commented out in the downloaded file.: you need to add your three parameters and uncomment it.
1 Attachment(s)
Re: Support Thread for Google reCAPTCHA plugin
Quote:
Originally Posted by
torvista
Yes. It is commented out in the downloaded file.: you need to add your three parameters and uncomment it.
Uncomment it?
Image attached of what I have...
Re: Support Thread for Google reCAPTCHA plugin
There is a line that says "ENTER YOUR SITE DETAILS HERE"...you enter your site details on the next line and remove the // at the start.
The lines you have modified should be reverted to the original code.
Re: Support Thread for Google reCAPTCHA plugin
Quote:
Originally Posted by
torvista
There is a line that says "ENTER YOUR SITE DETAILS HERE"...you enter your site details on the next line and remove the // at the start.
The lines you have modified should be reverted to the original code.
First i just wanted to say thank you so much for all that you do on this site , I am using at least two things from your git hub right now on my test zencart 1.5.7c install. ( surplusremotes.com ). I just installed the stock version of this plugin ( the on on the plugins page here , 3.4 ) And it installed just fine and shows up on the contact us page and new account creation page. But now i see you made a updated version of it on your github. Should i update if its working fine ? Or are there new features or changes I need for my 1.5.7c install in your version. Thanks again steve for all you do.
Re: Support Thread for Google reCAPTCHA plugin
Well, thanks for the thanks, it is rare to get that!
I would always say don't fix what isn't broken, but you should do a comparison and look at the changelog in the readme.
As your hosting php version gets incremented, there may be debug logs with older versions of the code. So my version should have those issues resolved.
Re: Support Thread for Google reCAPTCHA plugin
1 Attachment(s)
Re: Support Thread for Google reCAPTCHA
zencart version 1.51
Add Google captcha plugin to prompt error "incorrect-captcha-sol"
I want the contact us page to use google captcha and upload the file corresponding to the plugin.
There is no frame showing Google captcha on the contact us page.
However, when you fill in the content and submit, an error will be prompted.
Attachment 20039
pre-v1.5.1/includes/modules/pages/contact-us/header_php.php
I found this file to be completely different from the default file for version 1.51. I added the following code according to the installation documentation.
In /includes/modules/pages/contact_us/header_php.php, at around line 19 you should see the line:
$zc_validate_email = zen_validate_email($email_address);
immediately after that add in the following code:
$zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK');
==================================================== ================
I have uploaded these files:
/includes/auto_loaders/config.google_recaptcha.php
/includes/classes/observers/class.google_recaptcha.php
/includes/functions/extra_functions /recaptchalib.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
pre-v1.5.1/includes/modules/pages/contact-us/header_php.php
=============== =========================================
I didn't upload these files:
/includes/模板/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_write_default.php
pre-v1.5.1/includes/modules/pages/product_reviews_write/
header_php.php pre-v1.5.1/includes/modules/YOUR_TEMPLATE/create_account.php