• When I switch to a different role from the “Select Role and change its capabilities” dropdown, I find that the checkboxes below are not populating with the list of existing capabilities for that role.

    Also, when I switch roles, I see following in the console:

    Empty string passed to getElementById(). load-scripts.php:2:24932
    Empty string passed to getElementById(). load-scripts.php:2:24932
    Empty string passed to getElementById(). ure.js:550:21
    TypeError: el is null[Learn More] ure.js:554:17
        ure_refresh_role_view https://weatherspork.com/wp-content/plugins/user-role-editor/js/ure.js?ver=5.1.1:554
        jQuery 2
        ure_refresh_role_view https://weatherspork.com/wp-content/plugins/user-role-editor/js/ure.js?ver=5.1.1:547
        jQuery 4

    This is using Firefox 66.0.3 on macOS.

    Note that adding a new role works fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter boozedog

    (@boozedog)

    Note that I’m getting same behavior in Chrome, but the error stack is different:

    ure.js?ver=5.1.1:554 Uncaught TypeError: Cannot read property 'removeEventListener' of null
        at HTMLInputElement.<anonymous> (ure.js?ver=5.1.1:554)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:2)
        at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:2)
        at Object.ure_refresh_role_view [as success] (ure.js?ver=5.1.1:547)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:2)
        at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:4)
        at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:4)
    Thread Starter boozedog

    (@boozedog)

    And, same problem in Safari, this error stack looks similar to the one in Chrome:

    [Error] TypeError: null is not an object (evaluating 'el.removeEventListener')
    	(anonymous function) (ure.js:554)
    	each (load-scripts.php:2:2886)
    	each (load-scripts.php:2:851)
    	ure_refresh_role_view (ure.js:547)
    	i (load-scripts.php:2:27455)
    	fireWith (load-scripts.php:2:28215)
    	y (load-scripts.php:4:22733)
    	c (load-scripts.php:4:26927)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem when switching roles in main panel’ is closed to new replies.