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

  1. Enrico
    Posted 5 years ago #


    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.


    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?



  2. Kevin Behrens
    Plugin Author

    Posted 5 years ago #

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

  3. Kevin Behrens
    Plugin Author

    Posted 5 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

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic