WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tmassac
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.