WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Repairing a broken MS setup (3 posts)

  1. Topher
    Member
    Posted 1 year ago #

    Imagine for a moment there's a network setup with 4 or 5 sites on it.

    Then one day "something" happens and it's not a network site anymore. The main site is set up to be standalone. The sub-site database tables are there, but not hooked up.

    The site owner doesn't notice for weeks or months, then one day says "HEY! We need that all back! Quick!".

    This is where I come in, asked to fix things.

    I put define('WP_ALLOW_MULTISITE', true); into wp-config and it didn't magically start working like I'd hoped it would.

    When I go to Tools->Network setup it says this is a new network on an old install, so I can only do subdomains.

    The other sites were NOT sub domains, so I need to do something different.

    What are my options here?

  2. Lie to WP.

    First check if you have backups of the old files. (I know, months means probably not). If not, we'll just lie to WP.

    Go ahead and 'set it up' like it's subdomains, except when you get to the part where we do 'define( 'SUBDOMAIN_INSTALL', true );' make that define( 'SUBDOMAIN_INSTALL', false ); instead.

  3. Topher
    Member
    Posted 1 year ago #

    That worked just fine. Someone had also removed the domain mapping plugin, and ooked it up to the wrong database, that threw me for a little bit.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic