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

          tyson Tyson Phillips (Inactive) created issue -
          Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          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.
          tyson Tyson Phillips (Inactive) made changes -
          Description 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/
          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/
          tyson Tyson Phillips (Inactive) made changes -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Won't Fix [ 2 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue relates to CORE-2096 [ CORE-2096 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status In Review [ 5 ] Closed [ 6 ]

            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