Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Incompatibility between Role Scoper and Events Calendar

UserPost

4:45 am
January 23, 2011


valkrider

Member

posts 4

1

I am running Role Scoper 1.3.27 and trying to run WP Events Calendar 6.7.8.

When I activate the Events Calendar I am getting the following error message

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 content is currently hidden. Please remove the offending plugin, or deactivate Role Scoper to revert to blog-wide Wordpress roles.

I have searched the EC code and found one mention of "pluggable.php"

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

My PHP skills are minimal and am really struggling here to get this working. Any suggestions as to how I might alter either RS or EC to correct my problem would be most welcome.

I have also posted this as a bug on the EC Bug Tracker.

11:37 am
January 24, 2011


Kevin

Admin

posts 2503

2

I can tell you that custom-defining the set_current_user function is crucial to Role Scoper's design, and any plugin that prevents that by forcing early execution of pluggable.php is going to clash. I'm not ready to volunteer a lot of time into reviewing the EC code, but if it was my project I would begin by experimenting with removing the pluggable.php call altogether. Then based on what functionality fails without it, find a way to have that code execute later. Often when a plugin finds a need to call pluggable.php, it's because they're executing code right from the plugin body rather than hooking a function to the 'init' action.

If nothing else, it's worth trying on the off chance that the pluggable.php call is not necessary for your usage at all.


About the Agapetry forum

Currently Online:

9 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin