Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Duplicate Administration Menus

UserPost

11:24 am
May 18, 2011


jonahcoyote

Member

posts 18

1

Hi there,

I've been seeing something strange since an update a while ago. The admin menus for Role Scoper are duplicated: http://cl.ly/3U2a331G0Q1u270Y422S

I tried deactivating and reactivating the plugin but they remain duplicated.

Any ideas?

Thanks,

Jonah

12:41 pm
May 18, 2011


Kevin

Admin

posts 2503

2

What WP and RS versions are you running?

Is it a multisite installation?

Any menu customization plugins?

Is the logged user a site Administrator? Super Administrator?

12:47 pm
May 18, 2011


jonahcoyote

Member

posts 18

3

Hi Kevin,

It's a regular single site Wordpress install running on 3.1.2 and Role Scoper 1.3.39, logged in as Administrator.

We are using the Fluency Admin and Adminimize plugins but I've deactivated both and the duplicate Role Scoper menus are still there.

Any other ideas?

1:18 pm
May 18, 2011


Kevin

Admin

posts 2503

4

I don't see how that would happen unless:

a) 2 different copes are activated and one has role-scoper.php modified to not define the SCOPER_VERSION constant.

- or -

b) something is manually triggering the admin_menu action to fire a second time

I've updated the development code with a safeguard against (b). Please try that. If you prefer to just make the code change, add the following at the top of function build_menu() in role-scoper/admin/admin_rs.php:

static $done = false;
if ( $done ) { return; } else { $done = true; }

1:34 pm
May 18, 2011


jonahcoyote

Member

posts 18

5

At first I thought it was somehow two different versions running but that's not the case or at least it doesn't appear to be. Could automatic updating have somehow caused a previous version to not completely be wiped out?

At any rate, your fix works. Thanks!

- Jonah

1:41 pm
May 18, 2011


Kevin

Admin

posts 2503

6

I just updated the development code again. Can you install that and make sure it still prevents the double menus?

2:17 pm
May 18, 2011


jonahcoyote

Member

posts 18

7

Looks good to me Kevin. Thanks!


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 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