Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2012

Order: ReCaptcha does not appear on order forms any longer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.6.1
    • Fix Version/s: 4.0.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      The proper resolution to this issue is to use the newer version of ReCaptcha.


      ReCaptcha does not appear on order forms any longer when registering a client. We'll need to look into the cause and correct it.

      See http://www.blesta.com/forums/index.php?/topic/5690-recaptcha-not-working-on-order-forms/

        Issue Links

          Activity

          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          ReCaptcha will still display on the Standard order form template, and also when the signup form (which contains the ReCaptcha) is not loaded via AJAX.

          e.g.
          the /order/cart/index/ page will load /order/signup/index/ asynchronously. This will then attempt to load the ReCaptcha. It will fail because the ReCaptcha JavaScript contains 'document.write()' to load the ReCaptcha itself,
          i.e.
          document.write('<scr''ipt type="text/javascript" s''rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>');

          It fails because:
          "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened."

          Therefore, the ReCaptcha is never loaded.

          Show
          tyson Tyson Phillips (Inactive) added a comment - ReCaptcha will still display on the Standard order form template, and also when the signup form (which contains the ReCaptcha) is not loaded via AJAX. e.g. the /order/cart/index/ page will load /order/signup/index/ asynchronously. This will then attempt to load the ReCaptcha. It will fail because the ReCaptcha JavaScript contains 'document.write()' to load the ReCaptcha itself, i.e. document.write('<scr' 'ipt type="text/javascript" s' 'rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>'); It fails because: "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened." Therefore, the ReCaptcha is never loaded.

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Sep/16