I recently started a project where I inherited a fully functional website and the owner asked me to perform some tweaks. I started by making a duplicate of both the codebase and the database into a separate environment for development.
One of the features was to create a new page and add it to the navigation. So I went like this:
- Configure the stuff in my development admin panel
- Have them validated
- Configured the same stuff in the production admin panel
- Publish them. Everybody happy
(I am aware that we are skipping a part where a testing environment would be suitable, but that's beyond the point)
On to the next feature, which included some code changes. Upon starting to code, I noticed a change in my project.yaml
file from the last feature. So I committed it into Git, since someone from P&T posted that's what I should do :)
So, here I am, applying the change in project.yaml
to my production environment (overwriting the file there), and I get this error with the stacktrace pointing to craft\web\Application->_processConfigSyncLogic()
. Luckily I have a backup from which I can restore, and then the site is operational again.
I guess I introduced a conflict somewhere by applying the changes both in the production admin portal and in the project.yaml
, resulting in different identifiers in the databases and such. This makes sense in retrospect (although I don't like the redundancy that we have here), but since I am still finding my way around Craft CMS,
it's a mistake I was bound made and I want to fix.
Could anyone please give me some pointers on how to resolve my problem? Thanks a lot!
EDIT: maybe I should mention that the current CraftCMS version is 3.3.15 - should this issue have been resolved in an update since then. Updating the Craft CMS is on the roadmap after having the urgencies fixed.