Uncaught TypeError: Cannot read property ‘1’ of null
-
The plug-in immediatly throws this error when visiting the check-out page, and does the same when details are being changed.
It is trying to split the address but complains the second part (number) is missing, while it’s not. I did see that it is also trying to get shipping address, even though the ‘Ship to anther address’ is NOT checked, meaning for new clients and guests the address field there will be empty – resulting into PostNL not being able to split it – as there is nothing to split..
I am not sure wether this error is causing the plugin to break, but after adding details as a guest there is nothing appearing from PostNL, no error message, nothing. Probably because it is trying to do something with shipping details.
While logged in, the error remains but the process does work.
Full error:
postnl.js?ver=3.1.7:898 Uncaught TypeError: Cannot read property '1' of null at Object.splitFullStreetFromInput (postnl.js?ver=3.1.7:898) at Object.getAddressInputValues (postnl.js?ver=3.1.7:875) at Object.setAddressFromInputFields (postnl.js?ver=3.1.7:845) at Object.callDeliveryOptions (postnl.js?ver=3.1.7:917) at Object.init (postnl.js?ver=3.1.7:55) at postnl.js?ver=3.1.7:988
URL:
https://checkout.artifexmedia.nl/Yes, everything is up-to-date and the issue remains the same with just only WooCommerce, Storefront and PostNL active.
The page I need help with: [log in to see the link]
- The topic ‘Uncaught TypeError: Cannot read property ‘1’ of null’ is closed to new replies.