• I’m not sure how moving a simple site from https://www.dev.blah.com to https://www.dev2.blah.com can become so damned complicated but for the life of me I cannot fathom what the hell is going on.

    Things I have tried.

    Installing new copy of WordPress on dev2, setting up multisite network, copying database from original ensuring the replace all instances of dev.blah.com to dev2.blah.com. Getting told the damn thing cannot connect to the database, while in the same error being told that it can’t find certain blogs? How is it telling me it cannot connect to the database while telling me that it can?

    Fine, whatever, find a way to fix that error.

    Do another copy, delete wp_blogs, delete wp_site, delete wp_sitemeta, this fixes the inability to turn on network. Re-enable network site. Copy/Paste code into wp-config

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.dev2.blah.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    also htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    Allow from all

    It finds the initial site at blogid 1. I do another copy from dev.blah.com of wp_blogs, wp_blog_versions, wp_site, wp_sitemeta.

    FINALLY WordPress can see the other sites, I can even visit their home pages, everything is broken as hell but one thing at a time, try to visit other site dashboards….

    The https://www.dev2.blah.com page isn’t working

    https://www.dev2.blah.com redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    wtf? Fine so I clear all cookies and cache, still no dice. try adding
    define('RELOCATE',true); to wp-admin, no good.

    I’m at my wits end, every table looks correct, there is no instance of the original dev.blah.com domain in the database, what else is holding me back from getting to the dashboards for the other sites on the network?

    The blog ID’s check out, adding new sites gives me the same redirect error.

    How is moving a multisite network such a pain in the ass?

    I should note that https://www.dev.blah.com and https://www.dev2.blah.com are identical servers. the www at the front is some weird crap our network admin setup via the DNS, I don’t know why, it should affect this though especially considering https://www.dev.blah.com is working perfectly fine.

    • This topic was modified 8 years, 4 months ago by Jason.
    • This topic was modified 8 years, 4 months ago by Jason.
Viewing 2 replies - 1 through 2 (of 2 total)
  • For future anything about multisite should go in this board for more prompt support.
    https://www.ads-software.com/support/forum/multisite/

    I work for an Enterprise and we have multiple WP systems with multiple tiers (dev, test, stage, and production). I have copied and migrated production to dev/test/stage often – prod.domain.com to test.domain.com. It is a very simple process. I do it manually though I know there are plugins that will do some of the work.
    1) export production database
    2) copy production filesystem (WP core, themes, assets)
    3) modify production database – find prod.domain.com, replace with dev.domain.com
    4) import production database to dev/test/stage database
    5) copy production filesystem to dev/test/stage
    6) modify any files that contains system specific configurations. For us this is only wp-config.php, like database and domain parameters

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Moving Multisite, what a disaster.’ is closed to new replies.