Skip to main contentSkip to footer

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

Rupak Nepali
Share:
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!

Comments

Join the conversation and share your thoughts

Leave a Comment

Your comment will be reviewed before publishing.

Be the first to comment on this post!

Innovation

Let's Make Something Amazing Together

We always provide our best creative ideas at the highest level. Tell us about your project and we will make it work.

InnovateBringing innovative solutions to complex problems
AutomateStreamlining processes through automation
DominateLeading the market with exceptional results
Build Smarter and Launch FasterEfficient development for rapid deployment