Title: Function causing error
Last modified: April 17, 2018

---

# Function causing error

 *  [manoskav](https://wordpress.org/support/users/manoskav/)
 * (@manoskav)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/function-causing-error/)
 * Hi,
    I upgraded to 2.0.9 and some parts of my site turned blank. At source code
   these blocks exist, but in front they are not visible.
 * In console, i see there is an error with a function:
    Uncaught TypeError: jQuery(…).
   select2 is not a function at HTMLDocument.<anonymous> (um-scripts.min.js:1) at
   i (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at Function.
   ready (jquery.js:2) at HTMLDocument.K (jquery.js:2)
 * Any suggestions please;
    Are the developers going to fix the problems since version
   2, or we have to search for alternatives?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [calumallison](https://wordpress.org/support/users/calumallison/)
 * (@calumallison)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/function-causing-error/#post-10191995)
 * Hi,
 * Sorry for the issue. Can you please contact us via our site: https://ultimatemember.
   com/contact/sales/ so we can add this to our helpdesk system and help you with
   this issue.
 * Thanks
 *  Thread Starter [manoskav](https://wordpress.org/support/users/manoskav/)
 * (@manoskav)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/function-causing-error/#post-10208772)
 * I fixed a bug.
 * All my problems solved by deleting these pieces of code from /wp-content/plugins/
   ultimate-member/assets/js/um-scripts.min.js
 * e.select2(“destroy”),
    e.select2({data:r,allowClear:!0,minimumResultsForSearch:
   10}), jQuery(“.um-s1”).select2({allowClear:!0}), jQuery(“.um-s2”).select2({allowClear:!
   1,minimumResultsForSearch:10}),
 *  [jet0o](https://wordpress.org/support/users/jet0o/)
 * (@jet0o)
 * [8 years ago](https://wordpress.org/support/topic/function-causing-error/#post-10332674)
 * Hello,
    I have the same error message : fr_FR.js?ver=2.0.13:1 Uncaught TypeError:
   Cannot read property ‘defaults’ of undefined at fr_FR.js?ver=2.0.13:1 um-scripts.
   min.js?ver=4.9.6:1 Uncaught TypeError: jQuery(…).tipsy is not a function at HTMLDocument.
   <anonymous> (um-scripts.min.js?ver=4.9.6:1) at i (jquery.js?ver=1.12.4:2) at 
   Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2) at Function.ready (
   jquery.js?ver=1.12.4:2) at HTMLDocument.K (jquery.js?ver=1.12.4:2) (anonymous)
   @ um-scripts.min.js?ver=4.9.6:1 i @ jquery.js?ver=1.12.4:2 fireWith @ jquery.
   js?ver=1.12.4:2 ready @ jquery.js?ver=1.12.4:2 K @ jquery.js?ver=1.12.4:2
 * I Don’t know why,
    could you please help ?
 * I did try to delete the pieces of code but still not working.
 *  Thread Starter [manoskav](https://wordpress.org/support/users/manoskav/)
 * (@manoskav)
 * [8 years ago](https://wordpress.org/support/topic/function-causing-error/#post-10334420)
 * Hi,
 * You have to delete other piece of code, not the same as i did. Can you send me
   a link of your site?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Function causing error’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [manoskav](https://wordpress.org/support/users/manoskav/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/function-causing-error/#post-10334420)
 * Status: not resolved