Support » Plugin: Role Scoper » [Plugin: Role Scoper] 'set_current_user' error – conflict with other plugin

  • Resolved Enrico

    (@sulley)


    Hi,

    I’ve installed and enabled custom upload dir plugin (to create users’ folders in media folder). I really need this function to have a better ordered folders’ structure.

    http://wordpress.org/extend/plugins/custom-upload-dir/

    But I get this error message from Role Scoper:

    Role Scoper cannot operate because another plugin or theme has already declared the function “set_current_user” or forced early execution of “pluggable.php”

    I’ve checked the Filter Uploaded File Attachments option in File Filtering page of Role Scoper (to limit access to authors to just their uploaded media).

    Is there a fix? Or maybe you could add a new option to create user’s folder in media folder?

    Thanks.

    http://wordpress.org/extend/plugins/role-scoper/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    I haven’t looked into that particular plugin conflict, but here I describe the general approach to hacking a workaround.

    Plugin Author Kevin Behrens

    (@kevinb)

    This and similar plugin conflicts are now resolved as of Role Scoper 1.3.35:

    • Compat : Don’t define pluggable function set_current_user(), to avoid conflict with other plugins that define it
    • Compat : Don’t cast global $current_user as a custom subclass, to avoid conflict with other plugins that do so
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Role Scoper] 'set_current_user' error – conflict with other plugin’ is closed to new replies.