Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site cannot be converted to multisite from existing installation #32

Open
rmccue opened this issue Jan 22, 2014 · 5 comments
Open

Site cannot be converted to multisite from existing installation #32

rmccue opened this issue Jan 22, 2014 · 5 comments
Labels

Comments

@rmccue
Copy link
Contributor

rmccue commented Jan 22, 2014

If you provision a site (including running wp core install), then turn multisite mode on, the site will fail with a "missing tables" message.

@scribu
Copy link

scribu commented Jan 24, 2014

Could you post a list of WP-CLI calls that reproduce the issue?

Also, have you tried using wp core multisite-install instead?

@rmccue
Copy link
Contributor Author

rmccue commented Jan 25, 2014

@scribu This currently uses wp core multisite-install, but only if wp core is-installed is false. Here's the buggy process:

  1. Provision without the multisite flag:

    exec {"wp install $location":
        command => "wp core install",
        unless => 'wp core is-installed'
    }
  2. Turn on multisite in the config

  3. Reprovision:

    exec {"wp install $location":
        command => "wp core multisite-install",
        unless => 'wp core is-installed'
    }

The issue here is that it only tries multisite-install if is-installed is false. Instead, what we could do is:

exec {"wp install $location":
    command => "wp core install",
    unless => 'wp core is-installed'
}
if ( $multisite ) {
    exec {"wp multisite-convert $location":
        command => "wp core multisite-convert",
        unless => 'wp core is-installed --network'
    }
}

(What we really need is an is-multisite command, but is-installed --network should give the same result.)

@rmccue
Copy link
Contributor Author

rmccue commented Jan 25, 2014

Went with is-multisite instead in wp-cli/wp-cli#977

@rmccue
Copy link
Contributor Author

rmccue commented Apr 10, 2014

No longer blocked upstream.

@mdmoreau
Copy link

mdmoreau commented Aug 6, 2015

Has this been fixed? Ran into the issue earlier today, so I'm not sure if it's a problem with my config or something else. It was a brand new project, so vagrant destroy/up did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants