-
Notifications
You must be signed in to change notification settings - Fork 641
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
project-config/rebuild
removes entry types that don't have a field layout since 3.1.34
#4600
Comments
The So what likely happened here is you had entry types on production that didn’t exist locally, and when you ran If you have a database backup from production before applying the changes, import that locally, then run |
@brandonkelly No, that's not it unfortunately. Those entry types exist in production. I just did what you said (imported the production DB locally and then ran |
Sorry, I mean the same entry types that exist in production exist locally. I haven't changed the content model in a while. |
@benface Are you sure they exist with the same UIDs? |
@brandonkelly Yes, 100% sure. :) I just sent a DB dump and my pre- |
Same here, every pages was tested on my local machine and after the staging deployment, 2 single section lost their entry type. I will try to get more info on this. EDIT: I confirm that the 2 single sections was the only 2 without fields in their field layout. Before
After:
|
Craft 3.1.34.1 is out now with a fix for this, and that is the new breakpoint release for people updating from Craft 3.1.20 or later (when the We will release Craft 3.2.6 tomorrow which will also include a fix for this for people already on 3.2. To get the 3.2 fix early, change your "require": {
"craftcms/cms": "dev-develop#925b844b0aed74a4ea056c9e9e6f8417b3bcd3f1 as 3.2.5.1",
"...": "..."
} Then run |
3.2.6 is out with the fix as well, now. |
After updating to Craft CMS 3.1.34 (from 3.1.32.1), I ran
./craft project-config/rebuild
since I saw in the release notes for 3.2 that "if you’ve ever run theproject-config/rebuild
command [and I have], it’s highly recommended that you run it again with Craft 3.1.34, before updating to Craft 3.2." I looked at the changes toproject.yaml
quickly and everything looked good, so I pushed to production, synced the changes, and... some sections ended up losing all their entries. I looked at the changes toproject.yaml
more carefully and it seems that the rebuild command removed all the entry types that didn't have a field layout, which in turn deleted entries belonging to that entry type. Here's an example:Before running the rebuild command:
After running the rebuild command:
Notice how the whole
entryTypes
node is missing. Thankfully I had a backup but I think this is a pretty serious bug.Additional info
The text was updated successfully, but these errors were encountered: