Jon87 Posted January 28, 2021 Share Posted January 28, 2021 Hi Guys, I have updated to 8.1 and decided to move over to Twenty One theme. I've created a child theme for my front end templates, and almost everything works perfectly. The one problem I'm having is that script.js/script.min.js throw out a load of errors that seem to be preventing jquery from executing at all. I've checked and it only happens within the child theme. I have tried copying just the JS files across, and even tried copying across every theme file besides the template files I have edited but to no avail. The errors given are; main.js:501 Uncaught TypeError: Cannot read property 'addEventListener' of null at main.js:501 scripts.js?v=eafa76:21193 Uncaught TypeError: Cannot set property 'setInputError' of undefined at HTMLDocument.<anonymous> (scripts.js?v=eafa76:21193) at fire (scripts.js?v=eafa76:3232) at Object.fireWith [as resolveWith] (scripts.js?v=eafa76:3362) at Function.ready (scripts.js?v=eafa76:3582) at HTMLDocument.completed (scripts.js?v=eafa76:3617) A page that they can be found on for example is; https://host-gb.com/cart.php?a=add&pid=9&promocode=pennymonth Any suggestions you may have would be greatly appreciated. Kind Regards, Jon 0 Quote Link to comment Share on other sites More sharing options...
MrGettingRatherFrustrated Posted January 31, 2021 Share Posted January 31, 2021 There is a hotfix for 8.1 for a child theme issues, whether its relevant to this I dont know I'm afraid 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.