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

Unable to set a Single as the homepage if another entry was previously the homepage #4657

Closed
rungta opened this issue Jul 26, 2019 · 1 comment

Comments

@rungta
Copy link

rungta commented Jul 26, 2019

Description

I had made an entry in a "Pages" section (with versioning enabled) the homepage by setting it’s URI to __home__. Later on, I decided to create a new Single for the homepage. Craft threw an error saying the site "already had a homepage". Fair enough, so I went and changed the current homepage’s URI to something else (so it was no longer the homepage, verified in the front-end), but Craft continued to complain about the site already having a homepage. I went ahead and deleted the entry altogether and tried again. Still got the error. Only when I ran the garbage collector and removed all traces of the previous homepage entry was I able to create my new Single and mark that to be the homepage.

Steps to reproduce

  1. Create a section with versioning enabled
  2. Create an entry in this section and set it’s URI to __home__
  3. Now change it’s URI to something else
  4. Try to create a new Single and leave the URI field blank

Additional info

  • Craft version: 3.2.6
  • PHP version: 7.1.19
@brandonkelly
Copy link
Member

Thanks for reporting! Just fixed this for the next release.

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

No branches or pull requests

2 participants