WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
[resolved] 'set_current_user' error - conflict with other plugin (3 posts)

  1. Enrico
    Member
    Posted 3 years ago #

    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/

  2. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

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

  3. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic