Multiple Blogs with the Same User table and WordPress 3.7 (5 posts)

  1. tmassac
    Posted 2 years ago #

    As the title suggests, I'm trying to set up multiple blogs on a site, where if you register for one, you register for them all, and according to the Codex, if I use the following code: `define( 'CUSTOM_USER_TABLE', 'news_users' );
    define( 'CUSTOM_USER_META_TABLE', 'news_usermeta' );`

    on all subsequent blogs after setting up the first one, it should allow me to carry over all the users, correct? However, when I put that into the config files for the WordPress blogs and try to install them, I keep getting an error that says "Please provide a valid username".

    Except that the valid username field is nonexistent (it's literally a text line that says "User(s) already exists." So...how do I set this up? Am I missing a crucial step somewhere or was this feature phased out in preference to using a MU install of WordPress?

  2. chaoskaizer
    Posted 2 years ago #

    ditto, having the same issue too.

    they need to update the docs, http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables

  3. chaoskaizer
    Posted 2 years ago #

    until the dev can figured out the solution for this issue, here's some not recommended ugly workaround.

    1. Place anywhere inside wp-config.php

    $_POST['user_name'] = 'admin';

    2. Then restart your WP installation.
    3. After the installation has completed, u will need to removed the variables ($_POST['user_name'] = 'admin';).

  4. tmassac
    Posted 2 years ago #

    I also read somewhere that they updated the define statements to

    define( 'CUSTOM_USER_TABLE', $table_prefix.'my_users' );
    define( 'CUSTOM_USERMETA_TABLE', $table_prefix.'my_usermeta' );

    from the original (note the lacking underscore between USERMETA) is this still true or no?

  5. chaoskaizer
    Posted 2 years ago #

    I'm not sure if there is any changes with the custom constant. They should really try to fixed the orphan role issue for multisite using the same user meta table.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.