Using JSON synchronization doesn’t work properly in 5.7.11. We had to downgrade to an earlier version for now. Generally, sub-fields don’t get imported at all. If I have a group field with sub-fields, the group field shows up but not its sub-fields. This happens only when syncing from the Custom Fields. If I copy the JSON and import it manually, it works correctly.
Looks like this is fixed in the latest beta version. I can’t reproduce this in 5.8.0-beta3.
I’ve just spend some time testing this issue and was successfully able to replicate and fix the problem.
Can you please re-download the ACF PRO plugin files and test the issue?
An easy way to re-download is to edit the main acf.php plugin file and change the version number ‘5.7.11’ down to ‘5.7.10’
– please note the version number appears twice in this file and both will need to be changed
– after this change is made, please update the plugin as per normal and it will update to 5.7.11 (including the new fix)
@elliot thanks for looking into this! Unfortunately the sync doesn’t work at all now. It creates the field groups, but there are no fields inside them. I’m staying with 5.8.0-beta3 as it’s the only version that’s working correctly for now. I’ll be able to help in solving this if it doesn’t get fixed.
I’ve been having this same issue, a co-worker lost all the sub fields in the admin after syncing an update to the acf-json on 5.7.11; Everything had been working flawlessly until the update yesterday, then I tried a sync and lost all my sub fields as well. I sync via an update from him after he ran an import via the admin to import JSON which brought everything back. So right now, we have to import the JSON files instead of syncing and all seems fine…? But we’ve not tested that aggressively.
I just downloaded the latest pro version from my account today (30 mins ago from this writing), which is still stating it’s 5.7.11 but upon applying those updates still no sub fields saved as they’re all deleted, we can see our fields, it’s just that the json files have all the sub fields removed.
Reverting the sub field deletion that acf pro 5.7.11 does during the sync and getting the sub fields back we tried 5.8 beta and everything syncs fine just like it was doing on 5.7.10.
So, I tried to post earlier and it’s not showing up; Here’s a truncated follow up to the missing post I submitted earlier.
Syncing appears to still be broken as of earlier this morning, I pulled the latest download from my Pro account which was 5.7.11, applied it to my code base and syncing still deleted all sub fields from my acf-json files. Using 5.7.10 for 5.8 beta everything is preserved when syncing. The only way my dev team could “sync” updates to acf-json on our locals was doing a manual upload of the acf-json files via the importer tool, any sync attempts resulted in deleted sub fields.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2019 Advanced Custom Fields. Subscribe