Uncaught TypeError: Object [object Object] has no method ‘live’ in Opencart when using jquery-2.1.0.min.js

Today we were working on the latest version of the jquery-2.1.0.min.js because our client sliced with the use of it. And we got the error because of the upper version and some method gets deprecated like Uncaught TypeError: Object [object Object] has no method ‘live’ as the live method is deprecated and removed from version 1.9 so need to change it to ‘on’. Thus we changed all .live into .on

We have also removed all the msie also $.browser.msie which was showing error like Uncaught TypeError: Cannot read property ‘msie’ of undefined

We have updated the catalog/view/theme/default/template/checkout/checkout.tpl and catalogviewjavascript/common.js

We need to update other files also product.tpl, register.tpl, cart.tpl, etc

Once you replace “.live” into “.on”, you will be able to remove the error.

Please let us know if you have any questions or suggestions, please subscribe to our YouTube Channel for Opencart video tutorials. You can also find us on Twitter and Facebook. Enjoy!

Previous articleOpencart error xmlParseEntityRef: no name, rendering of the page
Next articleDetermine the classes needed for an order tracking system

LEAVE A REPLY

Please enter your comment!
Please enter your name here