Cms: The section is not enabled for the site

Created on 1 Feb 2019  Â·  12Comments  Â·  Source: craftcms/cms

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
bug

Most helpful comment

@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?

All 12 comments

@andris-sevcenko maybe related to #3643

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!

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

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

We had to remove the section completely and re-add and then
everything behaved.

On Sat, Feb 16, 2019 at 10:35 AM Marius Nettum notifications@github.com
wrote:

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

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/craftcms/cms/issues/3767#issuecomment-464361030, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALwUu-ujcViwwxV_bfGiTHwMJZQmvwcks5vODNqgaJpZM4aeMlt
.

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).

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.

@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?

@brandonkelly Will do, thanks!

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.

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.

Was this page helpful?
0 / 5 - 0 ratings