Results 1 to 6 of 6

Thread: Recaptcha has changed - March 31, 2018 - original version no longer working

  1. #1
    Active Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    472
    Total Contributions For

    JRR     $ 180.00
    Rep Power
    66


    Default Recaptcha has changed - March 31, 2018 - original version no longer working

    Google has updated reCaptcha to v2 and turned off the original version as of March 31, 2018. And, of course, I wasn't paying attention and I am now getting customers saying they can't register.

    I have turned off reCaptcha for the moment while I figure out what has changed.

    Has anyone updated to v2 and did they have to do anything to the php files?

    This module looks promising and I will look at it when I get back in a couple of hours...

    (should have put this in Admin...opps!)
    Last edited by JRR; 04-06-2018 at 09:14 PM.

  2. #2
    Active Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    472
    Total Contributions For

    JRR     $ 180.00
    Rep Power
    66


    Default Re: Recaptcha has changed - March 31, 2018 - original version no longer working

    OK, looks like 'Michael' auto-posted about this back in 2016 with the procedure from osCommerce now to see if it can be ported to osCmax...

  3. #3
    Active Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    472
    Total Contributions For

    JRR     $ 180.00
    Rep Power
    66


    Default Re: Recaptcha has changed - March 31, 2018 - original version no longer working

    OK, looks like 'Michael' auto-posted about this back in 2016 with the procedure from osCommerce now to see if it can be ported to osCmax...

    However working slowly through the listing I can't find:

    - Open catalog/includes/template_top.php

    Find
    _script type="text/javascript" src="ext/jquery/jquery.stringball.js"__/script_

    Replace With
    _script type="text/javascript" src="ext/jquery/jquery.stringball.js"__/script_
    _!-- ReCaptcha Start --_
    _script src="https://www.google.com/recaptcha/api.js" async defer__/script_
    _!-- ReCaptcha End --_


    also the next section (edited to fix the HTTP & VAR) is missing the close bracket section:

    Find
    if (isset( $_GET['action']) && ( $_GET['action'] == 'process') && isset( $_POST['formid']) && ( $_POST['formid'] == $sessiontoken)) {

    Replace With
    // reCAPTCHA - start
    if (isset( $_GET['action']) && ( $_GET['action'] == 'process') && isset( $_POST['formid']) && ( $_POST['formid'] == $sessiontoken)) {
    // reCAPTCHA - start
    $recaptcha = new ReCaptchaReCaptcha(RECAPTCHA_PRIVATE_KEY);
    $resp = $recaptcha-_verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);

    if ($resp-_isSuccess()) {


    not to mention that instead of formid and sessiontoken osCmax uses action and process.

    Can't find:

    _div class="buttonSet btn_position"_
    _span class="buttonAction"__?php echo tep_draw_button2_top();?__?php echo tep_draw_button(IMAGE_BUTTON_LOGIN, 'key', null, 'primary'); ?__?php echo tep_draw_button2_bottom();?__/span_
    _/div_

    (so can't) Replace
    _!-- ReCaptcha Start --_
    _?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?_
    _div class="g-recaptcha" data-sitekey="_?php echo RECAPTCHA_PUBLIC_KEY; ?_"__/div_
    _!-- ReCaptcha End --_
    _div class="buttonSet btn_position"_
    _span class="buttonAction"__?php echo tep_draw_button2_top();?__?php echo tep_draw_button(IMAGE_BUTTON_LOGIN, 'key', null, 'primary'); ?__?php echo tep_draw_button2_bottom();?__/span_
    _/div_

    Ah, this is just hopeless right now, too late at night to go any further. Will look again in the morning to see what is needed to sort this out...it would be nice to have ReCaptcha back to avoid spammers from using my site!

  4. #4
    Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Dec 2012
    Posts
    95
    Total Contributions For

    pete54321     $ 20.00
    Rep Power
    13


    Default Re: Recaptcha has changed - March 31, 2018 - original version no longer working

    JRR were you able to get this fixed?

    Thanks
    Pete54321

  5. #5
    Active Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    472
    Total Contributions For

    JRR     $ 180.00
    Rep Power
    66


    Default Re: Recaptcha has changed - March 31, 2018 - original version no longer working

    Hi Pete,

    No, I didn't.

    John :-#(#

  6. #6
    Active Member
    Recaptcha has changed - March 31, 2018 - original version no longer working


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    472
    Total Contributions For

    JRR     $ 180.00
    Rep Power
    66


    Default Re: Recaptcha has changed - March 31, 2018 - original version no longer working

    Has anyone fixed the ReCaptcha? I haven't had time...

Similar Threads

  1. No longer showing shipping charges
    By jezter in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 05-11-2009, 09:11 AM
  2. Product Info No Longer Working
    By stuartw in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 03-04-2009, 04:48 PM
  3. Can no longer log into admin - help please!
    By deuce in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 07-03-2008, 07:59 AM
  4. Search no longer working (Details inside)
    By DeltaWolf7 in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 11-27-2005, 12:49 AM
  5. Longer Product Name
    By jhixson in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-08-2004, 09:52 PM

Tags for this Thread

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
  •