anything done in pieces winds up well in pieces
Load the entire template of your choice clone it and then change it to whatever you wanted to look like
anything done in pieces winds up well in pieces
Load the entire template of your choice clone it and then change it to whatever you wanted to look like
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
zc 1.5.8a, php 8.1.24, recaptcha 3.6a
While its working fine, when the contact us page is loaded it throws this error:
Oddly the create account page does NOT do this.Code:17-Oct-2023 00:37:46 America/Chicago] Request URI: /contact_us?action=send, IP address: 82.147.85.78, Language id 1 #0 /includes/classes/observers/class.google_recaptcha.php(40): zen_debug_error_handler() #1 /includes/classes/traits/NotifierManager.php(87): google_recaptcha->update() #2 /includes/modules/pages/contact_us/header_php.php(31): base->notify() #3 /index.php(35): require('/home/pcs/publi...') --> PHP Warning: Undefined array key "g-recaptcha-response" in /includes/classes/observers/class.google_recaptcha.php on line 40.
Any suggestions would be greatly appreciated!
I checked and found no problem here. But in my shop, code for reCAPTCHA in contact page is placed before thetag instead of after as shown in plugin sample file.HTML Code:</fieldset>
I did install this pugin a while ago. I can't remember exactly, but only trouble I had where comming from this code insertion point.
Although I use Zen Cart 1.5.8a and PHP 8.1.24 like you I just realized I was using reCAPTCHA v3.7 from Torvista (on GitHub) and files are completly different. Please ignore my precedent post.
This has gone away without any other changes, so it must have been related to my screwed up DB having nulls where they shouldn't be everywhere. Sorry!
I installed Google reCAPTCHA Version: 3.6a on zencart 1.5.0 https://gmstationery.com.au/. The contract or create account page displays the reCAPTCHA field but form can be submitted without clicking it.
Template is called bootstrap. I placed the reCAPTCHA under the CUAS field
Did you edit the /includes/functions/extra_functions/functions_google_recaptcha.php to indicate that the checking should occur on those pages?
The default values are 'false', set the pages you're interested in to 'true' (and don't forget the quotes):
PHP Code:
//set to true for the pages on which you wish to enable reCaptcha (don't forget to add the code snippet to the template!)
define('GOOGLE_RECAPCHTA_ASK_QUESTION', 'false');
define('GOOGLE_RECAPCHTA_CONTACT_US', 'false');
define('GOOGLE_RECAPCHTA_CREATE_ACCOUNT', 'false');
define('GOOGLE_RECAPCHTA_REVIEWS', 'false');
define('GOOGLE_RECAPCHTA_BISN', 'false'); //Back In Stock Notification Plugin: https://github.com/torvista/Zen_Cart-Back_in_Stock_Notifications
v1.5.7b PHP7.3 OPC installed (among others)
README update suggestion
A customer encountered issues trying to create an account in that the Google reCAPTCHA wasn't showing on the page hence just the warning "prove you are not a robot".
I re-checked my istallation of the latest version of this plugin. I eventually solved the issue by adding the required code to an OPC template includes/templates/template_default/tpl_create_account_register.php
This is not mentioned in the README for the plugin, so I continued to tear my hair out trying and retrying to follow the README verbatim -so for others it may present the same issue - hence the suggestion to maybe update the README to include the above.
cheers, Mike
Feel free to go ahead and add your hard-earned knowledge (via the GitHub repository) to the readme, the code is open source for a reason.This is not mentioned in the README for the plugin, so I continued to tear my hair out trying and retrying to follow the README verbatim -so for others it may present the same issue - hence the suggestion to maybe update the README to include the above.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Bookmarks