Title: Selectable not a function?
Last modified: September 28, 2016

---

# Selectable not a function?

 *  [YBM](https://wordpress.org/support/users/ybmgryzzzgmailcom/)
 * (@ybmgryzzzgmailcom)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/selectable-not-a-function/)
 * Hi there
 * Great plugin. Thank you very much …
 * On trying to create a New role, I get the error below in my console (on Chrome
   and Firefox)
 * `ure-js.js?ver=4.6.1:48 Uncaught TypeError: $(...).selectable is not a function`
 * I have tried to play around with wrapping that section in ‘$(function() {‘ OR‘
   $(document).ready(function() {‘ but didnt get anywhere so reverted to the orignal
   of the js/ure-js.js file.
 * It is a new install of WP and I only have this plugin and Theme my Login installed
   right now – also didnt work with TML deactivated.
 * Please can you assist?
 * Thank you.

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

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8245300)
 * Hi,
 * This code is wrapped with `jQuery(function ($) {` already.
    Check for any JavaScript
   error messages just after opening User Role Editor page. It seems that jQuery
   UI was not loaded for some reason. Are there any jQuery related errors at other
   admin pages?
 *  Thread Starter [YBM](https://wordpress.org/support/users/ybmgryzzzgmailcom/)
 * (@ybmgryzzzgmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8280190)
 * Hi there,
 * Thanks for the reply Vladimir.
 * So i did this again on a clean install – default Ubuntu server, Php 7, Mysql 
   14.14, WP Version 4.6.1, Theme Divi child … only plugin i have is Yoast SEO and
   CMS Tree Page View.
 * On adding a role i get this err with debug on:
 * `Fatal error: Uncaught Error: Call to undefined function utf8_decode() in /var/
   www/html/wp-content/plugins/user-role-editor/includes/classes/ure-lib.php:1681
   Stack trace: #0 /var/www/html/wp-content/plugins/user-role-editor/includes/classes/
   ure-lib.php(482): Ure_Lib->add_new_role() #1 /var/www/html/wp-content/plugins/
   user-role-editor/includes/classes/ure-lib.php(298): Ure_Lib->process_user_request()#
   2 /var/www/html/wp-content/plugins/user-role-editor/includes/classes/user-role-
   editor.php(768): Ure_Lib->editor() #3 /var/www/html/wp-includes/plugin.php(524):
   User_Role_Editor->edit_roles('') #4 /var/www/html/wp-admin/admin.php(222): do_action('
   users_page_user...') #5 /var/www/html/wp-admin/users.php(11): require_once('/
   var/www/html/w...') #6 {main} thrown in /var/www/html/wp-content/plugins/user-
   role-editor/includes/classes/ure-lib.php on line 1681`
 * And also still getting this in console log “ure-js.js?ver=4.6.1:48 Uncaught TypeError:
   $(…).selectable is not a function”
 * I am looking at adding the user role manually now. This is a great plugin – just
   not working for me right now …
 * Thanks though
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8288919)
 * It seems that php-xml package is missing in your PHP installation:
    [http://stackoverflow.com/questions/35701730/utf8-endecode-removed-from-php7](http://stackoverflow.com/questions/35701730/utf8-endecode-removed-from-php7)
 * May be it’s easier to update your server configuration (yourself or discuss it
   with hosting provider)?
 *  Thread Starter [YBM](https://wordpress.org/support/users/ybmgryzzzgmailcom/)
 * (@ybmgryzzzgmailcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8321150)
 * Hey there. Thanks a ton Vladimir. This seems to have done the trick – It adds
   the role. Thanks very much. BTW how did you figure this out? – i tried googling
   around selectable and reading up on the function but got nowhere … Thanks
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8321648)
 * Hi,
 * Good. ‘.selectable()’ is just a sequence. The real problem is noted at the begin
   of the error message: ‘Fatal error: Uncaught Error: Call to undefined function
   utf8_decode()…’. PHP error message broke the HTML at the page. As the result 
   JavaScript was not executed – jQuery was not available.

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

The topic ‘Selectable not a function?’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

## Tags

 * [jquery error](https://wordpress.org/support/topic-tag/jquery-error/)
 * [selectable](https://wordpress.org/support/topic-tag/selectable/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 5 replies
 * 2 participants
 * Last reply from: [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/selectable-not-a-function/#post-8321648)
 * Status: not resolved