简体   繁体   中英

Uncaught JQuery TypeError with Plugin on Wordpress Site (site in post)

Working on a side-project here: http://beta.bookvideoclub.com/ I'm using the UserPro plugin, and there are multiple JQuery errors that popup.

Uncaught TypeError: jQuery(...).smartresize is not a function

Uncaught TypeError: jQuery(...).chosen is not a function

If you click the Login button on the top right, multiple Jquery errors appear in the Register process. Additionally the checkbox does not work at the very bottom.

Thanks in advance if you know and can assist in coming up with the solution to this puzzle.

The issue is that you use at least 2 jQuery libraries on the page. Check this screenshots: http://i.imgur.com/git6cfd.png

smartresize was added to 1.11.2, but you use it in 1.10.2

Here: http://i.imgur.com/sLZdh8O.png It is a list of added scripts on the page. You add 1.11, then execute JS with your method and after that jQuery is rewrited by 1.10

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM