New Zenner
- Join Date:
- May 2009
- Location:
- Travelers Rest, SC
- Posts:
- 22
- Plugin Contributions:
- 0
Support Thread for Google reCAPTCHA plugin
Now that Google reCAPTCHA V3 is out, is there going to be an upgrade to incorporate? I'm using ZC 157b. Thanks.
Views: 176,318
New Zenner
Now that Google reCAPTCHA V3 is out, is there going to be an upgrade to incorporate? I'm using ZC 157b. Thanks.
Sensei
Rick29690:
Now that Google reCAPTCHA V3 is out, is there going to be an upgrade to incorporate? I'm using ZC 157b. Thanks.
There's little reason to need v3. Even Google says don't use v3 unless your web app needs it.
Are you inquiring about v3 "just because it exists"? Or is there something about v3 that you need on your site? What is that?
New Zenner
reCaptcha is NOT working with 1.5.7b with Responsive Sheffield Blue v2 template
On the Contact Us page, the Subject line of the form does not appear but the program does check to make sure there is something there--resulting in it being impossible to complete.
Works as designed on the Create Account and Reviews pages.
I'm using Responsive Sheffield Blue v2 (most current) as the template. Replacing the default template file with the one in the reCaptcha distribution (i.e., /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php) caused the problem. Reverting to the Sheffield Blue template file fixed the subject line problem but now the Contact Us page doesn't have reCaptcha. And that's where I really needed it.
And yes, I added the v1.5.5 files (which are the same template file names) as instructed in the README file.
I'm not a php programmer so although I think I know what the problem is, I don't know how to fix it.
Totally Zenned
Thank you all who are updating this plugin.
I am running 1.5.7c with the latest reCaptcha module. I have noticed that there is no reCaptcha for the "Ask a Question" page that is also connected in some way to a "contact us" page.
Thank you!
Shrimp
Totally Zenned
DrByte:
Probably some stupid quirk with FEC's use of CSS/JS Loader junk.
I realize the following comment is not helpful in immediately doing what the rest of your post talks about ... but it's worth mentioning:
The first thing I delete when I find it is FEC, and all the things it adds or depends on, especially "CSS/JS Loader" stuff. All of these cause nightmares for interoperability with other plugins, and for upgrades, and for troubleshooting things that "should" work but don't work when these things are present.
When you get around to upgrading the site to a newer version, look into OPC One Page Checkout as a better replacement.
It would be great if there was a post with all the plugins that you recommend.
Thank you,
Shrimp
Sensei
shrimp-gumbo-mmmhhh:
It would be great if there was a post with all the plugins that you recommend.
My plugin recommendations: only the ones your business actually needs in order to serve the actual clearly-defined needs of your customers. And no added noise that would distract them. The fewer the better.
Totally Zenned
DrByte:
My plugin recommendations: only the ones your business actually needs in order to serve the actual clearly-defined needs of your customers. And no added noise that would distract them. The fewer the better.
Could you recommend a plugin that I could load more products to my website through a spreadsheet or datafeed file?
Thank you!
Zen Follower
shrimp-gumbo-mmmhhh:
Thank you all who are updating this plugin.
I am running 1.5.7c with the latest reCaptcha module. I have noticed that there is no reCaptcha for the "Ask a Question" page that is also connected in some way to a "contact us" page.
Thank you!
Shrimp
I just had your same issue and I finally fixed it. To use reCaptcha in "ask a question" page, you need to adjust \includes\classes\observers\class.google_recaptcha.php Otherwise "ask a question" page will still show reCaptcha section but not in use.
Near line 24, add following code:
$pages_to_check[] = 'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';
Near line 40 below if (!$resp->isSuccess()) { Change the following code from:
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
To
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'contact');
zc version is 157 with Observer bug fixed. reCAPTCHA version 3.4
New Zenner
Hi
I am running zen cart V1.5.1 (I know I should upgrade but I still have to get round to doing it).
I'm trying to get Google's V2 reCaptcha ('I am not a robot') to work.
Can anyone please confirm whether Google reCAPTCHA CAPTCHA - Version: 3.4 is working on ZC V1.5.1 running php5.3 ?
I'm getting server error 500 upon sending the contact us form. My very expensive webhost (have a guess who that might be) are giving me the run-around saying they can't make sense of what's going on and asked me 'contact the developer of the script to preview the matter and suggest if a change in the code or server environment is required. If a change in the PHP settings is needed, provide us with his/her response, so we could verify if the change could be applied to the hosting environment.' I told them that this script is listed as working as compatible with both lower and higher versions of zen cart that run on both lower and higher versions than php5.3
Should I try another version of Google reCAPTCHA CAPTCHA perhaps? Maybe Version: 3.1?
Any help would be greatly appreciated.
thank you!
Millie
Totally Zenned
I have a version on GitHub I have fettled to death...
https://github.com/torvista/Zen_Cart-Google_reCAPTCHA
If your version is working on your site then let sleeping dogs lie/leave well alone/don't fix what is not broken.
If you are having problems, then please try this out on your development site and report any issues and feed back improvements on GitHub.
New Zenner
Hello Torvista
Thank you for your reply.
Can I try this version work on zen cart 1.5.1?
I am in the process of moving webhost and if it works i'll try it out as soon as I can and get back to you.
Thanks in advance for your answer
Regards
Millie
Totally Zenned
Can I try this version work on zen cart 1.5.1?
I wouldn't normally consider obsolete versions, but yes it now should work with all the 1.5x versions.
New Zenner
torvista:
I have a version on GitHub I have fettled to death...
https://github.com/torvista/Zen_Cart-Google_reCAPTCHA
If your version is working on your site then let sleeping dogs lie/leave well alone/don't fix what is not broken.
If you are having problems, then please try this out on your development site and report any issues and feed back improvements on GitHub.
I've just installed your mod but can't get it working due to the site running PHP v5.6 (yeah I know but I can't upgrade)
The error is:
PHP Parse error: syntax error, unexpected ':', expecting '{' in /home/xxx/public_html/includes/functions/extra_functions/functions_google_recaptcha.php on line 42
Is there a workaround please?
Totally Zenned
As you correctly surmised, the culprit is your obsolete php 5.6.
You need to remove the ":string" from that line:
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null): string {
to
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null) {
New Zenner
torvista:
As you correctly surmised, the culprit is your obsolete php 5.6.
You need to remove the ":string" from that line:
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null): string {
> to
> ```
function recaptcha_get_html($fieldset = false, $theme = 'light', $size = 'normal', $style = null) {
Thanks - that got rid of the errors but now the recaptcha isn't working... I can submit forms on the site without ticking the Google checkbox? (not sure if it's related or not?)
Totally Zenned
I can submit forms on the site without ticking the Google checkbox
Any other debug logs?
Totally Zenned
I implemented this solution to reduce the small amount of spam being sent throught the contact us form.
I am getting more now. Can't say if that it just more attacks or the reCaptcha is getting bypassed.
New Zenner
torvista:
Any other debug logs?
No nothing??
Totally Zenned
torvista:
I implemented this solution to reduce the small amount of spam being sent throught the contact us form.
I am getting more now. Can't say if that it just more attacks or the reCaptcha is getting bypassed.
For me, I notice my spam is reduced.... at least through the contact us form.
Totally Zenned
I added the POST reCaptcha response code to the extra info footer of the email we receive, and the spam ones do not have the response, so they are managing to get round it....more investigation needed.
Fields marked required must be completed.
Tell staff why this post should be reviewed.