Sharing Users Between Blogs (I swear I tried!)
-
Hi, I know this has come up a bunch of times and I think I have read every post on this at this point. Even still I can NOT get the following instructions to work:
Share users between two blogs
Here are some brief notes on how to share a user table between more than one installation. All installations must be in the same database, using different table name prefixes. The prefix is set in the wp-config.php file.Share users between two blogs
Put them both in the same database with different prefixes. Then choose one of them to be the master user table. Then do this in both wp-config.php files:define(CUSTOM_USER_TABLE,’wp_users’);
define(CUSTOM_USER_META_TABLE,’wp_usermeta’);Replace the wp_ with the prefix you want.
In other words, you designate the user table from ONE installation as the master user table which will be used by the other installations instead of their own user table. This PHP code must go in the wp-config.php file in all the installations that you want sharing a single user table. You can have more than two installations set up the same way. Their tables must all be in a single database however.
My second install was clean – the first time it was being added to the first blog.
The main site is GoutdelaVie.com and the secondary site is travel.GoutdelaVie.com. Registering on blog 1 (www.) is fine. Then if I log out and try to log in to blog 2 (travel.) I get the following dreaded message:
You do not have sufficient permissions to access this page.
Blog 1 has the default table name, wp_, and the secondary one has travel_. I want wp_ to be the master user table.
Does anyone have any suggestions because I think that there may be others that continue to experience this issue.
Thanks in advance!
- The topic ‘Sharing Users Between Blogs (I swear I tried!)’ is closed to new replies.