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
Cannot create entry if its enabled for a disabled site #10499
Comments
This should be fixed now for the next release. If you have time in the next couple hours, it would be awesome if you could test for me, though. To get the fix early, change your There’s a new DB migration so you’ll also need to run |
Craft 3.7.32 is out now with the fix. Hopefully it works 🤞🏻 |
I just got the chance to test it, unfortunately i still get the same error message [-][1][][error][application] Couldn’t propagate element to other site due to validation errors:
|
Check your logs for the following text:
What’s the full output? |
I have tested it on 2 different projects, both have the same error when deactivating a site.
|
@lukasNo1 Are you still having issues with this? Just tested again locally and am unable to reproduce your error with the same general setup. |
Yes it it still the same error. However i also tested it with a completely fresh craft installation and there it works. Seems to be something in our existing projects. I'll have a look into it. |
Hi @brandonkelly, I am currently having this problem with a |
@bzin By “disable another” – did you actually delete the other site? Or just mark it as disabled in its settings? |
Hi @brandonkelly , the Sites were just |
Are you programmatically disabling them on deployment or something? Are you disabling the primary site ever, by chance? If so, that is not supported and will lead to bugs. |
Not, the |
This should be fixed now for the next release. To get the fix early, change your |
Craft 4.0.5 is out now with that fix. |
This is fixed in Craft 3.7.51 as well, now (#11741). |
This is great @brandonkelly! I will check if this can be useful for us on the project we still rely on Craft 3. We will not be able to update to 4 at this moment... at least some plugin dependencies are solved 😅 |
Description
I tried creating a new entry for a site with the following code:
Which yields the following error:
The section is enabled both for the enabled site "2", which i try to save the entry in and the disabled site "1".
Im not sure if this is a bug, or intentional.
If i create it in the CP, everything works and it is also propagating to the disabled site.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: