Problem with the user access
-
Hello,
I implement a sharing user table access on 3 wordpress’s install, http://www.domain.com (principal one), a.domain.com and b.domain.com , the login process use just one user table that I defined on the wp-config.php, the meta_user and users tables, etc…
something like that:
define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);I hardcode capabilities.php and put the wp_ prefix instead of $wpdb->prefix on the _init_caps() function to be able to access the different installations, until now, all is working fine.
The problem now is that the author bloc on the posting page (on a.domain.com and b.domain.com) is empty, when I go to the users list page on the 2 seconds installation, I have the list but on the top I haven’t the filtring link, like you can see on the screen bellow:
http://img5.glowfoto.com/images/2010/12/02-0232257273L.jpg
and
http://img5.glowfoto.com/images/2010/12/02-0233189257L.jpgI have some 40 users, 7 of them are authors, 10 are contributors and 2 admins but as you can see, I find 0 even if the users exist.
I triend to hardcode the _init() function by inserting the db prefix on the line 101 (from $this->role_key = $wpdb->prefix . ‘user_roles’; to $this->role_key = ‘wp_user_roles’; )
Then I got the error message “You do not have sufficient permissions to access this page.”
Any chance to get this work ?
Regards,
Ghaith
The topic ‘Problem with the user access’ is closed to new replies.