Hello,
I’m reaching out again because we’ve unfortunately discovered another issue in ACFML that appears to be related to a previously reported ticket: https://wpml.org/forums/topic/critical-error-after-updating-acfml-to-2-2-0-when-saving-existing-options-page/page/2/
The current issue is as follows:
When ACF field groups used in an options page are set to “translatable” in WPML, saving content in the default language removes the content in all other languages.
The fields inside the field groups are configured correctly for translation according to your documentation:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/
This affects, for example, link, text, and editor fields (and maybe also other fields).
A concrete example:
If the default language of the website is German, with additional languages like Italian and English, and we update a value (e.g., a link field) in German, then upon saving, the existing content in Italian and English is deleted.
Our assumption is that since the field groups are handled separately per language in the background (including unique field keys), the mapping between fields no longer matches correctly, which leads to values being removed from the database.
This issue does not only affect a single page but around 70 pages on our site where field groups are set as translatable. For newer pages, we are already following best practices and no longer set field groups as translatable. However, updating all existing pages accordingly would require a significant amount of manual work, especially for the options pages, as content would need to be re-entered completely.
Additionally, I have already prepared a staging site with a minimal setup where the issue is reproducible. I would be happy to provide you with access so you can test it directly and, if needed, pass it on to your second-tier support team.
We also noticed that everything works as expected with version 2.1.5. As a temporary workaround, we have downgraded to this version on the affected sites.
Could you please help us investigate this issue?
Thank you in advance!