Forums

Events Calendar
Conflict with Role Scoper plugin, uses pluggable.php (6 posts)

  1. YukataNinja
    Member
    Posted 1 year ago #

    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.

  2. YukataNinja
    Member
    Posted 1 year ago #

    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?

  3. colinsp
    Member
    Posted 1 year ago #

    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?

  4. colinsp
    Member
    Posted 1 year ago #

    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.

  5. kevinB
    Member
    Posted 1 year 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
  6. colinsp
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic