Announcement

Collapse
No announcement yet.

Captcha Image

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Captcha Image

    Hi, my contact us form is failing to display the CAPTCHA image box. Any pointers would be appreciated.

    Thanks

  • #2
    No-one will be able to help as you haven't posted an URL and the one in your "About" info is a W ordpress site.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


    • #3
      Sorry, the url is https://motocc.co.uk/cgi-bin/mf00004...CTION=SHOWFORM

      Comment


      • #4
        Your page is trying to load a JavaScript via:
        And https://www.google.com/recaptcha/api/challenge?k=6LdkM8ASAAAAAHOnU-7XevJkGUcQMGsPOFCN9pdB is returning a 404 Page not found error. So either your CAPTCHA code/URL is wrong or Google is broken.

        Also, your pages are displaying as insecure. if you look at your page in Chrome and type Control / Shift / J to open the debug console. You'll see several other errors that need addressed. Missing images, https page trying to load http items, etc. If you fix these you'll get the proper secure icon against your pages.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


        • #5
          Thank you Norman. Much appreciated

          Comment


          • #6
            I've had a look at the code - not sure if this Out of the Box or whether the developer I used placed it on the contact form page. However, there are some variables setup in Sellerdeck called Recaptcha Private Key and Public key. In google it says site key which I assume would be the public key and the secret key is the private key?

            Comment


            • #7
              Your SellerDeck v16 code looks out of the box. Could this be deprecated at the Google end. I also get a 404 error of I try it from here (but I'm using dummy keys).

              SellerDeck V18 uses a completely different method.

              It may help if another V16 user looks at this.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


              • #8
                Looks like SD2016 uses ReCAPTCHA V1 and it's now shut down.
                Google (on https://developers.google.com/recaptcha/docs/versions) says:
                reCAPTCHA v1 - Shut down
                reCAPTCHA v1 has been shut down since March 2018.

                Here's what worked for me. I copied the code from 2 layouts in a SellerDeck 2018 site to the same place in the SD 2016 one.

                In SD 2018 go to Design / Library / Layouts / ReCAPTCHA.

                Copy contents of ReCAPTCHA JS Options and ReCAPTCHA Layout to the same place in the SD 2016 Library, overwriting what's there.

                If you don't have SD 2018 to hand, here's the 2 snippets:

                ReCAPTCHA JS Options:
                Code:
                <script src='https://www.google.com/recaptcha/api.js'></script>
                ReCAPTCHA Layout:
                Code:
                <div id="recapchaWidget" class="g-recaptcha" data-sitekey="<actinic:variable name="ReCAPTCHAPublicKey" />"></div>
                If your existing keys work, then all's good. If not you'll need new keys and choose ones suitable for ReCAPTCHA V2 / Tickbox.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                • #9
                  Hi Norman,

                  Ill make the changes as suggested. Could you confirm what the keys are e.g secret key is the private key and the site key is the public key.

                  Comment


                  • #10
                    That's what I used.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                    • #11
                      I see it's working now. It will help others if you post whether your existing ReCAPTCHA V1 keys worked or whether you had to get new ones.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                      • #12
                        I created new ones but it still seems not to be working. Seems to be Stuck in a loop

                        Comment


                        • #13
                          This is the code I had before changing in JS options

                          <script type="text/javascript">
                          var RecaptchaOptions = {
                          theme: '<actinic:variable name="ReCAPTCHATheme" />',
                          tabindex: 5
                          };
                          </script>

                          This is the layout

                          <script type="text/javascript" src="http<actinic:block if="%3cactinic%3avariable%20name%3d%22IsSSLUsedForWholeSite%22%20%2f%3e%20%3d%3d%20true" >s</actinic:block>://www.google.com/recaptcha/api/challenge?k=<actinic:variable name="ReCAPTCHAPublicKey" />">
                          </script>
                          <noscript>
                          <iframe src="http<actinic:block if="%3cactinic%3avariable%20name%3d%22IsSSLUsedForWholeSite%22%20%2f%3e%20%3d%3d%20true" >s</actinic:block>://www.google.com/recaptcha/api/noscript?k=<actinic:variable name="ReCAPTCHAPublicKey" />"
                          height="300" width="500" frameborder="0">
                          </iframe>
                          <br>
                          <textarea name="recaptcha_challenge_field" rows="3" cols="40" tabindex="5">
                          </textarea>
                          <input type="hidden" name="recaptcha_response_field" value="manual_challenge">
                          </noscript>

                          Comment


                          • #14
                            I see the problem. You now have ReCAPTCHA V2 appearing on your SD 2016 Contact Us page. Unfortunately, that's not enough as the Perl script MailForm.pl needs to use updated code to process the ReCAPTCHA V2.

                            I've used WinMerge to look at SD 2016 and SD 2018 versions of MailForm.pl and there are quite a lot of changes to the ReCATCHA code. You can't use the SD 2018 MailForm.pl in SD 2016 due to other changes. You'd have to compare the 2 files and copy over only the ReCAPTCHA related stuff.

                            UPDATE. It's likely that you may be able to use the SD 2018 MailForm.pl in SD 2016 if you change the line:
                            Code:
                                    my @Response = ACTINIC::SendMail($::g_sSmtpServer, $$::g_pSetupBlob{EMAIL}, $sSubject, $sTextMailBody, "", $sEmailRecpt);
                            to:
                            Code:
                                    my @Response = ACTINIC::SendMail($::g_sSmtpServer, $$::g_pSetupBlob{EMAIL}, $sSubject, $sTextMailBody, $sEmailRecpt);
                            I've not tested this so it's up to you.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                            • #15
                              I've made the change as suggested - however, hasn't made any difference. Appreciate your help on this Norman. I believe we are a the stage where you spending to much unpaid time on this. Happy to pay for you to look into the problem for me.

                              Comment

                              Working...
                              X