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

Multisite command sometimes thinks it has run, but hasn't. #9989

Open
jasonvarga opened this issue May 2, 2024 · 0 comments
Open

Multisite command sometimes thinks it has run, but hasn't. #9989

jasonvarga opened this issue May 2, 2024 · 0 comments
Assignees

Comments

@jasonvarga
Copy link
Member

Bug description

If you end up in a situation where you have 'multisite' => true in your config file (but do no other multisite steps) and then you run php please multisite, it'll tell you:

ERROR  Command may have already been run. Site directories for site [default] already exist!  

That's not true though. There are no directories. The issue is that $this->siteHandle is null at this point, so the path it checks is actually the parent.

How to reproduce

  • Add 'multisite' => true to your config.
  • Run please multisite

Logs

No response

Environment

5 beta 1

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

@duncanmcclean duncanmcclean changed the title Multisite command sometimes thinks it has run, but hasn't. [5.x] Multisite command sometimes thinks it has run, but hasn't. May 3, 2024
@duncanmcclean duncanmcclean changed the title [5.x] Multisite command sometimes thinks it has run, but hasn't. Multisite command sometimes thinks it has run, but hasn't. May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants