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

The section is not enabled for the site #3767

Open
jerome2710 opened this issue Feb 1, 2019 · 12 comments
Open

The section is not enabled for the site #3767

jerome2710 opened this issue Feb 1, 2019 · 12 comments
Assignees
Labels

Comments

@jerome2710
Copy link

Description

Unfortunately, Craft 3.1 has so many issues, we are reverting back to 3.0.

In this case: when creating a section for a multi site setup, the save fails. The ID of the site was expected, but the section mapping uses handles.

For example, changing:
sites[customSiteHandle][uriFormat]
to:
sites[1][uriFormat]
works.

Steps to reproduce

  1. Clean install of Craft 3.1 with 2 sites
  2. Create a new section

Additional info

  • Craft version: 3.1.7
  • PHP version: 7.2.11
@brandonkelly
Copy link
Member

@andris-sevcenko maybe related to #3643

@janhenckens
Copy link
Contributor

We're seeing the same error message when saving new entries or categories on a specific site.

Specific case: we had 3 sites in the install, removed 2 of them and now saving just about any element throws is this or a related error in the CP.

We submitted a request through the request support widget, hope that helps!

@jcrichto
Copy link

We are seeing the same error when we try to disable a template on one of our sites.

@nettum
Copy link
Contributor

nettum commented Feb 16, 2019

Experiencing the same as @jcrichto when trying to disable a section (in my case a single type) for a site.

@jcrichto
Copy link

jcrichto commented Feb 16, 2019 via email

@janhenckens
Copy link
Contributor

Any updates for this issue? We have an install where this happens to every entry as soon as we remove on the sites (that should be removed for this project).

@niektenhoopen
Copy link

Are you deleting the site with ID 1 by any chance? I had to do the deletion in the database a couple of weeks ago.

@brandonkelly
Copy link
Member

@janhenckens It’s most likely due to something that’s out of sync between your DB and project config. Can you send in a ticket from your dashboard with as much detail as you can provide?

@janhenckens
Copy link
Contributor

@brandonkelly Will do, thanks!

@ghost
Copy link

ghost commented Mar 13, 2019

I had the same problem. I ended up cutting the piece in question from config, then reload the cp. I got an error message that the project config is out of sync. So I clicked the red button. The sync resulted in the same error message again. I then added the piece back in the project config and reloaded the cp. Now the problem is gone.

In my case, it was a single section. I wanted to not show a single on several of my sites. When I used the lightswitch ("for site 1") and saved, I ran into the error message.

@jerome2710
Copy link
Author

jerome2710 commented May 8, 2019

Any updates on this matter? I am still having this issue when giving 3.1 another try, now with version 3.1.25. The project config file is already disabled ('useProjectConfigFile' => false), as this results in even more issues.

Please note that this issue only appears to be triggered when creating a single. Channels and structures both work fine.

@brandonkelly
Copy link
Member

@jermome2710 see #3767 (comment)

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

7 participants