Hello. I have encountered an incompatibility — which seems to be a known issue — between blocks created with ACF and WPML. I created a custom Gutenberg gallery block using ACF with "mode": "auto" in order to have the page rendered in the backend.
It works perfectly, both in the backend and in the frontend. However, when I duplicate and translate the page into a second language using WPML, the block render shows only the first image of the gallery instead of all the images added to it. This issue happens only in the backend render; in the frontend the gallery is duplicated and displayed correctly.
Workarounds: I have to set the block to "mode": "edit" instead of "auto", or I have to save the duplicated page and reload it to see the gallery correctly in the backend.
I added a new post and on the test site all works fine. That's quite weird. I'll investigate on my site to ckeck what causes the issue.
Thanks for your support
I couldn’t understand why everything was working fine on your test site but not on mine. Then I found the difference in settings that causes the issue: if I enable the setting 'Automatically detect best options for translating image texts (alt, caption, title)', the problem appears in the duplicated post. If I disable this option, everything works correctly again. You can check it out in the test site.
No I didn't. The site worked till my previous message. I can't see any problem about the site. Please check the test post I saved: hidden link
You can see the issue when the post is duplicated into the German language.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
To confirm, we need to investigate why this duplicate is failing with the number of images when creating galleries using Fancybox. The gallery setup is defined here: hidden link
If this is correct, please let me know and I will escalate the case to our second-tier support team for further investigation.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
This has been escalated to our Compatibility team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.