-
Notifications
You must be signed in to change notification settings - Fork 635
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
Field layout changes not applying properly across environments #5952
Comments
@chrisleversuch That's odd. Can you, please, get in touch via support@craftcms.com? If possible, send over a DB dump of the staging site, the Running |
@andris-sevcenko I've sent those over. |
I think I'm experiencing the same issue. Another dev on our team added a global set and pushed the changes to the staging server. Both his env and the staging env both have the global set. I pulled down those changes (which I can see are present in the
When I visit a page that relies on those globals I get a twig error
I've dumped the database from staging to my local machine and used I tried running
Here's the strangest part, when I restore via a These are the exact same database dumps I'm using, but it only works when I restore manually as opposed to via the command. I have a feeling there might be 2 separate issues at play here:
Edit: It turns out the manual restore only fixed one of the missing fields. I noticed that a different entry was missing another field from the interface (again, that field is in the DB and in the Running |
@timmyomahony that doesn't seem to be the same issue. Can you, please, create a new issue and add the version of Craft you're using? |
Clearing caches (empty the |
Description
I added an existing field to an existing entry type and everything seemed fine (UI and project.yaml as expected). But after pushing the changes to my staging environment, I couldn't see the field when creating a new entry. In the same commit I modified a matrix field (adding 1 item, removing another) and that worked fine. This is the first time I've changed a field layout since upgrading from 3.4.12.
I tried clearing caches (through admin and CLI) and running
./craft project-config/sync
but no change. Also tried./craft project-config/rebuild
and pushing to staging but no change.I took a db dump from staging and loaded it locally - this resulted in the field no longer appearing on the new entry page. When I looked at the field layout the field wasn't shown even though it's in the project.yaml file. I then edited the layout and re-added the field and the new entry screen started working again - the only change to project.yaml was an updated dateModified. I also tried restoring the database again and saving the layout without re-adding the field - this resulted in the field being removed from the project.yaml.
Github suggested #4231 as a similar issue - I can't run
./craft project-config/sync --force=1
on my staging environment as it's read-only but running it locally made some changes (I ran it 5 times and it kept making more changes to the project.yaml). This didn't fix the staging environment though.Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: