Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
project-config sync/rebuild errors with missing fields #5209
Following a Craft 2 upgrade, I'm able to run
There are certain fieldtypes that have no match – they remain in
I would assume, that running
I think a reasonable expectation is that Craft itself will never build an invalid config. In this case that's what's happening, as the config it generates cannot be sync'd.
Not sure the best approach, but Craft could simple skip over fields that had missing classes, rather than halting on exception.
Well, project config rebuild operation essentially re-runs the migration that creates the initial project config, so you could argue that the config after upgrading isn't syncable.
As this scenario seems pretty fringe and unlikely to occur during normal operation, if I was upgrading a site, I would prefer it breaking with a screaming exception rather than just silently ignoring the errors. Furthermore, if something in the project config gets glossed over, it still gets imported into the internal project config, meaning that you would have to use