• A recent change to Events Calendar adds require_once(ABSPATH.'wp-includes/pluggable.php'); to events-calendar.php. This causes Role Scoper plugin to break with this error:

    Role Scoper cannot operate because another plugin or theme has already declared the function “set_current_user” or forced early execution of “pluggable.php”. All posts, pages and links are currently hidden. Please remove the offending plugin, or deactivate Role Scoper to revert to blog-wide WordPress roles.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter YukataNinja

    (@yukataninja)

    I have fixed this by commenting out events-calendar.php#79. This does not seem to break any features I use. What is this needed for?

    I have exactly the same problem. I tried commenting out line 79 as suggested

    require_once(ABSPATH.'wp-includes/pluggable.php');

    BUT unfortunately it doesn’t fix it for me I still get the warning above as soon as I go to the Widget Admin page.

    Any other suggestions please?

    I decided to have another go at this. I removed this line completely rather than commenting out and both Events Calendar and Role Scoper seem to be working properly together.

    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

    KevinB, Thanks for the new version. That is great news.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Events Calendar] Conflict with Role Scoper plugin, uses pluggable.php’ is closed to new replies.