Jump to content

Twenty One Child Theme script.js error


Jon87

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated