How to upgrade a normal wordpress blog to WPMU?

I tried to search for this solution on the net but surprisingly there is no single solution found. Please advise.

  • jcnjr
    • WP Core Meltdown

    One thing the bavatuesday article does not address is issues with the import of the user and usermeta tables.

    I’m planning a migration of our existing WP site at http://tripawds.com to WPMU. I have a test mu site up and running at http://tripawds.net – complete with functioning Simple:stuck_out_tongue:ress forums and other plugins – but the import of users is my first major roadblock.

    I’ve sought help in this wordpress mu forum WP to WPMU migration topic which goes into more detail, but I am asking here as I am still stuck.

    Here is my current conundrum…

    I imported a test user and his metadata. He can log in but never reaches his dashboard. The browser stalls and reports the following error:

    can’t open the page.

    Too many redirects occurred trying to open “http://tripawds.net/wp-admin/”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

    This same user can even successfully post in the forums via direct navigation to the forums page. But he cannot visit his dashboard.

    FYI: Once I’m comfortable with the test install at our .net, I’ll repeat the migration on the current .com domain. Any help importing the users is greatly appreciated. Thanks!

    PS: I just noticed this topic is in the beginners forum! lol

  • Andrew
    • Champion of Loops

    Hiya,

    You most likely will need to update the capabilities for each user since blog ids won’t match up. If you look in the usermeta table you should see some rows that look like this:

    wp_1_capabilities

    If you only have a handful of users it will probably be easier to just fix up the capabilities via the admin panel (add users to blogs, etc). However, if you have a large number of users you’ll probably need to toss together a quick script to run through the db and fix stuff up.

    Thanks,

    Andrew

  • jcnjr
    • WP Core Meltdown

    …if you have a large number of users you’ll probably need to toss together a quick script to run through the db…

    Thanks for the quick reply! Clear as mud.

    Anyone care to lend a hand with such a script or provide details? We only have 715+ members …

  • Andrew
    • Champion of Loops

    Since the task at hand is apparently just converting a WP install to a WPMU install that means there would probably only be one or two blogs depending on whether the WP blog is imported into the main blog or as an additional blog. Either way the users most likely just need to be added to one blog since that’s how it was setup on the WP install.

    Thanks,

    Andrew

  • drmike
    • DEV MAN’s Mascot

    Agreed but 1) Could have sworn the importer is supposed to assign users to the blog that’s being imported to and 2) in the past when this has come up, a large number of users are being assigned to their own blogs instead of just the home blog which is why they’re being moved to wpmu.

  • Andrew
    • Champion of Loops

    1) Could have sworn the importer is supposed to assign users to the blog that’s being imported to

    I’ve never used an "importer" to move a WP install to a WPMU install. If someone coded an importer script and it’s malfunctioning then it’s probably best to ask them to take a look at it.

    2) in the past when this has come up, a large number of users are being assigned to their own blogs instead of just the home blog which is why they’re being moved to wpmu.

    True but assigning all users aside from admins as subscribers to the main blog would take care of the issue with the redirect.

    Thanks,

    Andrew

  • jcnjr
    • WP Core Meltdown

    assigning all users aside from admins as subscribers to the main blog would take care of the issue with the redirect.

    Boy, a script to do this would be just dandy. Manually creating a blog for the imported user resolved the redirect loop. But with 715+ users … [sigh]

    I am so almost able to do this! I think I’ll check out the jobs section. Thanks.