Error: Cannot read properties of null
-
In the last checkout step (Payment Methods), the plugin displays the error in the console:
checkout-validation-300.js:121 Uncaught TypeError: Cannot read properties of null (reading ‘querySelector’)
at addInlineMessage (checkout-validation-300.js:121:36)
at processValidationResults (checkout-validation-300.js:381:6)
at _publicMethods.validateField (checkout-validation-300.js:520:10)
at HTMLInputElement.handleValidateEvent (checkout-validation-300.js:444:18)
at HTMLFormElement.dispatch (jquery.min.js?ver=3.6.4:2:43184)
at y.handle (jquery.min.js?ver=3.6.4:2:41168)
at Object.trigger (jquery.min.js?ver=3.6.4:2:71790)
at HTMLInputElement. (jquery.min.js?ver=3.6.4:2:72385)
at Function.each (jquery.min.js?ver=3.6.4:2:3003)
at e..each (jquery.min.js?ver=3.6.4:2:1481)I checked that the Fluid Checkou plugin is validating the fields on the credit card form that obviously have not yet been filled in and that should be validated when sending the data at checkout through the Asaas payment gateway. I think that the Fluid Checkout plugin should not validate the Payment Methods form fields. The way I found at the time was to temporarily change the checkout-validation-300.js file to not validate the fields of the form in question. I also enabled Debug Mode and Load unminified files. How best to resolve the error?
- The topic ‘Error: Cannot read properties of null’ is closed to new replies.