Skip to content
New issue

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

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

Already on GitHub? # to your account

project-config/sync should generate a yaml file if none exists #3736

Closed
sjelfull opened this issue Jan 29, 2019 · 1 comment
Closed

project-config/sync should generate a yaml file if none exists #3736

sjelfull opened this issue Jan 29, 2019 · 1 comment
Assignees
Labels
bug project config 🐫 features related to Project config severity:critical Showstopper bugs

Comments

@sjelfull
Copy link
Contributor

Description

I enabled the useProjectConfigFile setting and ran project-config/sync without knowing that it would wreck my installation.

Everything deletable like sites, sections, entry types etc. got a dateDeleted value, and i'm currently receiving the error An Error occurred while handling another error: craft\errors\SiteNotFoundException: No primary site exists when accessing the control panel.

I tried setting all the dateDeleted columns to null, including the sites - to no avail.

Shouldn't it generate a file if none exists?

Steps to reproduce

  1. Setup a new install.
  2. Enable useProjectConfigFile.
  3. Run ./craft project-config/sync without visiting the CP.
@brandonkelly brandonkelly added bug severity:critical Showstopper bugs project config 🐫 features related to Project config labels Jan 29, 2019
@brandonkelly
Copy link
Member

Yes it should.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug project config 🐫 features related to Project config severity:critical Showstopper bugs
Projects
None yet
Development

No branches or pull requests

3 participants