Results 1 to 10 of 694

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    356
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA

    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:
    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.
    Oddly the create account page does NOT do this.

    Any suggestions would be greatly appreciated!
    2 + 2 = 5 for extremely large values of 2

    Pez Collectors Store •••••••• My Plugins List

  2. #2
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    333
    Plugin Contributions
    7

    Default Re: Support Thread for Google reCAPTCHA

    I checked and found no problem here. But in my shop, code for reCAPTCHA in contact page is placed before the
    HTML Code:
    </fieldset>
    tag instead of after as shown in plugin sample file.
    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.

  3. #3
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    333
    Plugin Contributions
    7

    Default Re: Support Thread for Google reCAPTCHA

    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.

  4. #4
    Join Date
    Jun 2005
    Posts
    356
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA

    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!
    2 + 2 = 5 for extremely large values of 2

    Pez Collectors Store •••••••• My Plugins List

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: Support Thread for Google reCAPTCHA

    Quote Originally Posted by gothstone View Post
    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:
    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.
    Oddly the create account page does NOT do this.

    Any suggestions would be greatly appreciated!
    Same Zen Cart 2.0.1, PHP 8.3
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Support Thread for Google reCAPTCHA

    the latest version by @swguy, perhaps addresses this issue. i have not tested. the line versions look different.

    i have addressed this issue (for the version that both of you seem to be running) in a different manner. change line 40 as such:

    PHP Code:
    //from
    $resp $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
    //to
    $resp $recaptcha->verify($_POST['g-recaptcha-response'] ?? 'nothingPosted'$_SERVER['REMOTE_ADDR']); 
    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    Default Re: Support Thread for Google reCAPTCHA

    In my version I checked previously that this post was already set, to set a corresponding error message.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 213
    Last Post: 18 Nov 2024, 04:17 AM
  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

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