Support » Plugin: User Role Editor » Javascript error when used in conjunction with Visual Composer

  • Resolved Cyril Batillat

    (@cyrilbatillat)


    Hi,

    I encounter a Javascript error on User Role Editor admin page (/wp-admin/users.php?page=users-user-role-editor.php) when Visual Composer is installed.

    The error: Uncaught Error: Syntax error, unrecognized expression: #vc_access_rules_backend_editor/disabled_ce_editor in file ure-js.js at line 657
    (I suppose the errors comes from the / in the capacity name)

    User Role Editor version: 4.27
    Visual Composer version: 4.12

    Is there a workaround for this?

    Thanks for your great plugin which saved my day multiple times.

    https://wordpress.org/plugins/user-role-editor/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Vladimir Garagulia

    (@shinephp)

    Hi Cyril,

    Thanks for the information and good feedback.
    I reproduced this error at my development environment. I will return with a solution as I decide how to resolve this conflict.

    Jude Pierre

    (@judepbizzupnet)

    This plugin seem promising but I’m having the same issue with Visual Composer. None of the links on the side seem to work (i.e. Add Role, Rename Role, etc.) because of this issue. Vladimir, I’m anxiously waiting for your update.

    Plugin Author Vladimir Garagulia

    (@shinephp)

    I uploaded the update 4.27.1 with a fix for this issue as a development version:
    https://downloads.wordpress.org/plugin/user-role-editor.zip

    Could you test it?

    Jude Pierre

    (@judepbizzupnet)

    Hi Vladimir, thanks for the quick update. It appears to work great now! Although I will test some more tomorrow. I did notice something else. When you change the name of a built-in WP role, it changes in the Network Admin, but when Admin in individual sites edit or add a user, it doesn’t show the custom name for roles. I’m not sure if this is how it suppose to work. Any feedback you can provide is much appreciated. Thanks.

    Plugin Author Vladimir Garagulia

    (@shinephp)

    Thanks for your help. I plan to publish v. 4.27.1 tomorrow.

    When you rename role this change is applied to the only site where you do it. In order to replicate this change to other sites you need to:
    1) rename role at the main blog;
    2) check “Apply to All Sites” after you renamed a role;
    3) click update.
    Your change should be replicated to all sites of the network after that.

    Jude Pierre

    (@judepbizzupnet)

    Vladimir, thanks for the update. It works great except the custom name for roles only work when viewing users in Network Admin and not in WP Admin. I followed your instructions but same issue.

    Plugin Author Vladimir Garagulia

    (@shinephp)

    Hi Jude,

    It’s a very good point. Thanks.
    I re-checked the code and discovered that only current role capabilities are updated network wide with “Apply to All Sites” option. Role name is not included into update scope currently.
    I will add it into the next update.

    Jude Pierre

    (@judepbizzupnet)

    Awesome! I’m looking forward to the next update.

    Cyril Batillat

    (@cyrilbatillat)

    As my issue is fixed, I close this topic.
    Thanks again Vladimir.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.