Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default reCaptcha: ERROR for site owner: Invalid site key

    I re-installed the Google reCaptcha module with the default settings described in the readme.
    When I try to add myself as the first "customer" on my site I get the following error where the Captcha appears: ERROR for site owner: Invalid site key
    I added the public key in the space that was delimited with "." but spelled out that that was where the key went. (if ($publickey == 'ENT'.'ER_YOU'.'R_PUB'.'LIC_K'.'EY_HE'.'RE') return '';)
    On the next line that read: if (empty($publickey)) return ''; I added the private key between the last two '' marks because I couldn't find another place to put it and the directions mentioned the key should go on lines 9 and 10 and those two lines were the closest I could find.
    Any idea how I can fix this so it works? It also seems to have a problem with the country that is set to Canada but after I enter my user info there is an "*" next to the country field that is the same colour as the banner at the top of the page that tells me to "Please verify that you are not a robot."
    Just to be on the safe side I used a different email account but got the same error
    I then edited the recaptchalib.php file and removed the key that I had put on the line after the public key, in between the two ''s but got the same error again.
    My site is afghansniagara.ca
    The install was a clean install, no upgrades.

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

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    I added the public key in the space that was delimited with "." but spelled out that that was where the key went. (if ($publickey == 'ENT'.'ER_YOU'.'R_PUB'.'LIC_K'.'EY_HE'.'RE') return '';)
    On the next line that read: if (empty($publickey)) return ''; I added the private key between the last two '' marks because I couldn't find another place to put it and the directions mentioned the key should go on lines 9 and 10 and those two lines were the closest I could find.
    No, you put it on the wrong place.

    You're supposed to ONLY edit THIS file, to put your codes in it:
    /includes/functions/extra_functions/recaptchalib.php

    Code:
    <?php
    /*
     * AUTHOR:
     *   David Allen 2015
     *   Contains added recaptcha_check() function for bypassing observer class if necessary
     */
    
    
    // Get your v2 keys from https://www.google.com/recaptcha/admin
    $publickey = 'ENTER_YOUR_PUBLIC_KEY_HERE';
    $privatekey='ENTER_YOUR_SECRET_KEY_HERE';
    
    ......
    Undo the other edits you made in the "ENT'.'ER_YOU'.'R_PUB'.'LIC_K'.'EY_HE'.'RE" part.
    .

    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. #3
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    My bad. I sat down today and had a fresh look at this issue and saw what I did wrong. It was staring me right in the face.
    I fixed the error and now it's working the way it should.
    I'm really sorry.

  4. #4
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    I had this working in v156 but can't seem to get it to work in v157.
    Is there a way I can set it to use the check box, no pictures to pick out?

  5. #5
    Join Date
    Mar 2012
    Location
    yogyakarta, indonesia
    Posts
    16
    Plugin Contributions
    2

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    Quote Originally Posted by rensing View Post
    I had this working in v156 but can't seem to get it to work in v157.
    Is there a way I can set it to use the check box, no pictures to pick out?
    Its work for me...

  6. #6
    Join Date
    Mar 2012
    Location
    yogyakarta, indonesia
    Posts
    16
    Plugin Contributions
    2

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    You must edit the template file.

    add this code:

    Code:
    <?php /** BEGIN Google Recaptcha #1 of #1 **/ ?>
    <?php echo recaptcha_get_html(false); ?>
    <?php /** END Google Recaptcha #1 of #1 **/ ?>
    to your template file in folder:
    \includes\templates\classic\templates\


    1. tpl_contact_us_default.php

    line number: 80

    2. tpl_modules_create_account.php
    line number: 174

    3. tpl_product_reviews_write_default.php
    line number: 68

    if the files not exist, you can copy from folder: \includes\templates\template_default\templates


    and
    \includes\templates\responsive_classic\templates\ :

    1. tpl_product_reviews_write_default.php
    line number: 68

  7. #7
    Join Date
    Mar 2012
    Location
    yogyakarta, indonesia
    Posts
    16
    Plugin Contributions
    2

    Default Re: reCaptcha: ERROR for site owner: Invalid site key

    Quote Originally Posted by rensing View Post
    My bad. I sat down today and had a fresh look at this issue and saw what I did wrong. It was staring me right in the face.
    I fixed the error and now it's working the way it should.
    I'm really sorry.
    Ops... it was solved now?

 

 

Similar Threads

  1. v155 Error dubble entry on primary key in whos_online crashes site
    By Saxe in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 28 Feb 2018, 11:55 PM
  2. Replies: 0
    Last Post: 22 Aug 2014, 01:47 AM
  3. v139h Suddenly site Owner's email notification of purchases not arriving
    By adf169 in forum General Questions
    Replies: 7
    Last Post: 9 Sep 2013, 02:30 PM
  4. Help - site broken - 1062 Duplicate entry '0' for key 3
    By buzzworm2 in forum General Questions
    Replies: 2
    Last Post: 10 Feb 2011, 06:18 AM

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