Resolved
Reported for: Advanced Custom Fields Multilingual 2.0.2
Resolved in: 2.0.3
Overview of the issue
With our latest Advanced Custom Fields Multilingual release, ACFML 2.0, when the Field Groups (acf-field-group) are set as Translatable (and translated), fields are duplicated in the native editor. This issue occurs because the function acf_get_field_groups() is called too early, causing the cache to be filled with unfiltered or partially filtered data. The cached field groups are not filtered by language at that stage.
Workaround
Our developers are working on fixing this right now. A hotfix release will be issued shortly.
In the meantime, you can add this code into your theme’s functions.php file. Be sure to make a full backup of your site before proceeding:
add_action( 'wp_loaded', function() { wp_cache_delete( acf_cache_key( 'acf_get_field_group_posts' ), 'acf' ); } );
This issue also seem to prevent loading other ACF fields/field groups set as Translatable, also the content for some fields is no longer shown and they appear empty.
Hello Michel,
We don’t have similar reports to your case that I’m aware. Does this workaround also helps in your case?
If it does not, please open a chat in our support so we can investigate it.
Regards
I double-checked and thankfully it was an anomaly on one of our sites! pfew 🙂
Thank you for your feedback, Michel.
I’m glad it finally worked.