0

I got this error enter image description here so checkout is not working.

= UPDATE = enter image description here enter image description here

= UPDATE =

And I got error like this.

Uncaught TypeError: Unable to process binding "afterRender: function(){return renderReCaptcha() }"
Message: Cannot read properties of undefined (reading 'rendering')
    at UiClass.initCaptcha (reCaptcha.js:117:35)
    at UiClass.renderReCaptcha (reCaptcha.js:182:26)
    at afterRender (eval at createBindingsStringEvaluator (knockout.js:3221:28), <anonymous>:3:134)
    at init (after-render.js:17:28)
    at knockout.js:3730:58
    at Object.ignore (knockout.js:1563:45)
    at knockout.js:3729:60
    at Object.arrayForEach (knockout.js:168:36)
    at applyBindingsToNodeInternal (knockout.js:3715:34)
    at applyBindingsToNodeAndDescendantsInternal (knockout.js:3573:56)

enter image description here

1 Answer 1

1

Check if your customize code in modules/theme or 3rd-party extensions/theme overrides Magento_Checkout then apply the changes from Magento 2.4.3 to these files.

Check if after run bin/magento setup:static-content:deploy -f static content files are generated into pub/static or not.

To fix issue "JS error in console on checkout when recaptcha for checkout/placing order is not enabled" apply the following patch.

diff --git a/vendor/magento/module-re-captcha-checkout/Block/LayoutProcessor/Checkout/Onepage.php b/vendor/magento/module-re-captcha-checkout/Block/LayoutProcessor/Checkout/Onepage.php
index 3ee2rd..8349152 111644
--- a/vendor/magento/module-re-captcha-checkout/Block/LayoutProcessor/Checkout/Onepage.php
+++ b/vendor/magento/module-re-captcha-checkout/Block/LayoutProcessor/Checkout/Onepage.php
@@ -79,7 +79,8 @@
             ['place-order-recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key);
         } else {
             if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
-                ['payment']['children']['beforeMethods']['children']['place-order-recaptcha'])) {
+                ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']['children']
+                ['place-order-recaptcha'])) {
                 unset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
                     ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']
                     ['children']['place-order-recaptcha']);
10
  • should I use Klarna in Magento2.4.3?
    – Bohdan V.
    Commented Dec 16, 2022 at 12:24
  • To mitigate this issue immediately, I disabled the Klarna logs by setting logging to disabled at Stores -> Settings -> Configuration -> Sales -> Payment Methods -> Klarna -> Configure -> API configuration -> Request Logging. But site is not loading yet. And I think have to change requir-config.js file, is right?
    – Bohdan V.
    Commented Dec 16, 2022 at 13:23
  • To try apply the patch, I made patch file in vendor/Klarna and then paste code in it. Then git apply klarna_logs.patch but got error "error: corrupt patch at line 25"
    – Bohdan V.
    Commented Dec 16, 2022 at 13:49
  • If you do not use Klarna, you don't need to apply this patch. Check if your customize code in modules/theme or 3rd-party extension/theme overrides Magento_Checkout then apply the changes from Magento 2.4.3 to these files. You can get the code for Magento_Checkout in vendor/magento/module-checkout or from github: github.com/magento/magento2/tree/2.4.3-p3/app/code/Magento/…
    – Tu Van
    Commented Dec 16, 2022 at 15:16
  • Hi @Tu van what is the pub/stactic directory. I found no file in pub/stactic. I run command "php bin/magento setup:static-content:deploy -f" ago, but there is no file. so I think this checkout has errors because of this. May I move stact/js files from old to new.
    – Bohdan V.
    Commented Dec 18, 2022 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.