Page 50 of 64 FirstFirst ... 40484950515260 ... LastLast
Results 491 to 500 of 639
  1. #491
    Join Date
    Dec 2020
    Location
    UK
    Posts
    6
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Has anyone managed to get the recaptcha working on the create account page with FEC installed?

    I've just taken over a zencart site and I'm "feeling" my way around!

    I had a problem with recaptcha on the contact page but I've fixed that :)

    But on the create account page (weirdly called /log-in on the frontend) I can get the Recaptcha box to show up but either ticking the box or not just refreshes the page with no errors? (nothing in the log files or server logs)

    After digging I see that the FEC mod has it's own template & module files for creating accounts etc...

    So I have /includes/modules/fec_create_account.php as well as the normal zencart create_account.php file

    Template wise I have includes/templates/<my-template>/templates/tpl_login_default.php which seems to control the layout of the login / register page and has FEC code in it?

    Zencart Version: 1.5.4

  2. #492
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Support Thread for Google reCAPTCHA plugin

    Probably some stupid quirk with FEC's use of CSS/JS Loader junk.

    Quote Originally Posted by raindrop99 View Post
    Has anyone managed to get the recaptcha working on the create account page with FEC installed?
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #493
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: Support Thread for Google reCAPTCHA plugin

    NOTE: if you're running the unsuffixed version of zc157 without having installed the known patches (https://www.zen-cart.com/showthread....v1-5-7-series) could be part of the problem.

    That initial version had a bug that prevented multiple 'observers' from watching the same event, which might have play in the issue reported.

  4. #494
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by lat9 View Post
    NOTE: if you're running the unsuffixed version of zc157 without having installed the known patches (https://www.zen-cart.com/showthread....v1-5-7-series) could be part of the problem.

    That initial version had a bug that prevented multiple 'observers' from watching the same event, which might have play in the issue reported.
    Yes, important point!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #495
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by lat9 View Post
    NOTE: if you're running the unsuffixed version of zc157 without having installed the known patches (https://www.zen-cart.com/showthread....v1-5-7-series) could be part of the problem.

    That initial version had a bug that prevented multiple 'observers' from watching the same event, which might have play in the issue reported.
    I was looking for that post when I did by tests... maybe that helped in my testing, but also found it was easy to add another page to the notifier group to add Get-a-Quote to reCAPTCHA.. Could be the answer for the FEC question..

    Just to post this again, Both ZC1.5.7b and ReCAPTCHA performed as expected. When testing URL in the comment, reCAPTCHA passed it to ZC1.5.7b and ZC stopped it dead. Which is what I would expect for reCAPTCHA is only testing for a click and not what's in the message...
    Dave
    Always forward thinking... Lost my mind!

  6. #496
    Join Date
    Dec 2020
    Location
    UK
    Posts
    6
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Thanks to the last few posts (cheers Dave) I've had a lighbulb moment and fixed recaptcha with FEC

    Because FEC doesn't use the default zencart register page - it uses the login page as a split register / login page the observer wasn't looking for the recaptcha on that page

    In includes/classes/observers/class.google_recaptcha.php

    Add $pages_to_check[] = 'NOTIFY_LOG_IN_CAPTCHA_CHECK'; to the array of pages to check so it becomes:

    Code:
    	function __construct() {
    
    		//comment out any pages you do NOT want to check
    		$pages_to_check[] =  'NOTIFY_CONTACT_US_CAPTCHA_CHECK';
    		$pages_to_check[] =  'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';
    		$pages_to_check[] =  'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK';
    		$pages_to_check[] =  'NOTIFY_LOG_IN_CAPTCHA_CHECK';
    		$this->attach($this,$pages_to_check);
    	}
    Then in the same file update the following

    Code:
    if (!$resp->isSuccess()) {
    			$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text', 'NOTIFY_LOG_IN_CAPTCHA_CHECK' => 'create_account');
    			$messageStack->add($event_array[$eventID], $resp->getErrors());
    			$error = true;
    		}
    This now seems to be working fine - although there is no error is you don't tick the recaptcha? (must have missed something)

  7. #497
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by raindrop99 View Post
    Because FEC doesn't use the default zencart register page - it uses the login page as a split register / login page the observer wasn't looking for the recaptcha on that page
    Taking a quick look at FEC, to does have the NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK built in, it also seems to be doing it's own looking for a captcha.php class, so more then likely some other things going on here.

    To get the message change 'create_account' to 'login'...
    Dave
    Always forward thinking... Lost my mind!

  8. #498
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    107
    Plugin Contributions
    1

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by lat9 View Post
    NOTE: if you're running the unsuffixed version of zc157 without having installed the known patches (https://www.zen-cart.com/showthread....v1-5-7-series) could be part of the problem.

    That initial version had a bug that prevented multiple 'observers' from watching the same event, which might have play in the issue reported.
    Now that 1.5.7b is out, mind you only a few weeks ago, that did solve the issue with the observers. Thank you for pointing out that 1.5.7 had this bug in it. For the last several months I've been banging my head trying to get this to work as I have been flooded with spam emails from the contact us page. I'm not one to jump right on to each update as I have a modified ZC that I winmerge all the files to check for changes before uploading blindly, which is why I didn't upgrade to 157b as soon as it came out. But now that 157b address the observers, the commenting out that I posted earlier is no longer needed. Thank you all for putting up with my rants as I was not the politest in my posts.

  9. #499
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Support Thread for Google reCAPTCHA plugin

    Whether you jump on the new right away or not, it's a good idea to use the thread tools and subscribe to the thread at https://www.zen-cart.com/showthread....n&goto=newpost

    Do the same for all the new versions and the forum will keep you up to date with changes.

  10. #500
    Join Date
    Dec 2020
    Location
    UK
    Posts
    6
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by davewest View Post
    Taking a quick look at FEC, to does have the NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK built in, it also seems to be doing it's own looking for a captcha.php class, so more then likely some other things going on here.

    To get the message change 'create_account' to 'login'...
    Thanks Dave,

    I've changed the create_account to login and I still don't get an error message when recaptcha fails? Any ideas please?

    This is what I changed
    Code:
    'NOTIFY_LOG_IN_CAPTCHA_CHECK' => 'login'
    Zen Cart 1.5.4, FEC installed

 

 
Page 50 of 64 FirstFirst ... 40484950515260 ... LastLast

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 201
    Last Post: 31 Aug 2021, 05:14 PM
  2. Back to Top Plugin [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 6 Feb 2016, 10:52 PM
  3. v151 Plug 'n' Pay plugin [Support Thread]
    By KetchRescue in forum Addon Payment Modules
    Replies: 5
    Last Post: 28 Nov 2015, 04:56 AM
  4. Justuno Plugin [Support Thread]
    By JustunoApp in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 May 2015, 11:00 PM
  5. VendingBox Plugin Support Thread
    By vb_support in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 10 Feb 2013, 07:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR