• YBM

    (@ybmgryzzzgmailcom)


    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

    (@shinephp)

    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

    (@ybmgryzzzgmailcom)

    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

    (@shinephp)

    It seems that php-xml package is missing in your PHP installation:
    https://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

    (@ybmgryzzzgmailcom)

    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

    (@shinephp)

    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.