Forums

Dont have sufficient permission problem with multisite (4 posts)

  1. teahou
    Member
    Posted 7 months ago #

    Hi there. I will layout what I have done, and hopefully someone will see my error.

    I have 2 seperate WP sites, momentumoptionstrading.com and momentumoptions.com. We will call them MOT and MO. MOT has about 10k users, MO has none and we wanted to make it so MOT users can also log into MO. After doing the following, I can no longer log into the MO admin area, I get an 'insufficient permission' error. Here is what I did:

    1. Changed MO table prefixes in the DB to mopt_. SO an example table is mopt_users.

    2. I then copied all the mopt_ tables into the MOT DB.

    3. Then changed the table prefix in MOs wp-config file.

    4. Then changed the DB info (host, user, pwd, etc) in the MO config to point to the MOT DB.

    4. Then add these lines to the MO config file:
    define(CUSTOM_USER_TABLE,'wp_users');
    define(CUSTOM_USER_META_TABLE,'wp_usermeta');
    - This should force MO logins to authenticate against the MOT users table,right?

    I am attempting to use the MOT admin login to access the MO admin area, as this is user table that is being pointed to.

    Do I need to specifically tell WP it is ok for the MOT admin credentials to work on the MO admin area?

    What am I missing?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    For one, that's not MultiSite.

    It would be probably easier to turn MOT into a multisite install, make a new subsite for MO, import everything from MO, and then use domain mapping to point MO's domain to MOT/MO

  3. teahou
    Member
    Posted 7 months ago #

    So is making MO a subdomain of MOT the only for this to work? Is there a way to make it work with both MOT and MO being seperate domains?

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    Possibly, but you're not using MultiSite at that point. You could look at something like WP Hive.

    As you don't use MultiSite, though, I'll move this out to WP Advanced.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.