Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Author Posts
January 6, 2020 at 9:01 pm #5242649

drewB

I am trying to:
Clone an ACF field group from English to Spanish. This field group is set to display on our Products post type edit screen

I expected to see:
One instance of the ACF field group on the English edit screen and one on the Spanish edit screen.

Instead, I got:
Two instances of the field group on the English edit screen and one on the Spanish edit screen.

Steps I have taken:
- Installed the Advanced Custom Fields Multilingual plugin
- Cloned the original field group and set the "Language of this field group" cloned group to Spanish. This resulted in two instances of the field froup on the English and Spanish edit screens.
- Used the "Duplicate" option under "Translations" to create a Spanish version of the field group. This resulted in two field group instances on the English edit screen and one on the Spanish edit screen.
- Followed the steps outline here: https://wpml.org/errata/advanced-custom-fields-acf-field-groups-duplication-issue/. This resulted in two field group instances on the English edit screen and one on the Spanish edit screen.

Active plugins installed on the site:
Advanced Custom Fields PRO - 5.8.7
Advanced Custom Fields Multilingual - 1.5.0
WPML Multilingual CMS - 4.3.6
WPML Media - 2.5.5
WPML String Translation - 3.0.6
WPML Translation Management - 2.9.4
WPML Widgets - 1.0.6

January 7, 2020 at 2:59 pm #5247819

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting WPML support.

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Kind regards,
Carlos

January 8, 2020 at 11:11 am #5253309

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,
Thank you very much for the information provided.

Just to confirm: You desire to have custom fields within 'Associated Products' to show both in English and Spanish. Is this correct?

Regards,
Carlos

January 8, 2020 at 3:28 pm #5255245

drewB

That is correct. We would like to have an instance of Associated Products to display in English and Spanish.

If possible, we would also like each language to have its own unique Associated Product List relationship field values. For instance, if values are set for Associated Product List on the English side, this value will not be present on the Spanish side.

Let me know if you have any additional questions. Thanks!

January 9, 2020 at 3:35 pm #5263265

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

I set the custom fields within 'Associated Products' to 'Translate' and saved the changes.

Could you tell me if the issue is solved now?
Regards,
Carlos

January 9, 2020 at 3:46 pm #5263373

drewB

Thanks. The issue is still present. The Associated Products group is still displaying twice on the English and Spanish edit screens.

Here are two examples where this is occurring:
hidden link
hidden link

January 9, 2020 at 3:57 pm #5263465

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

Please follow this steps:
- Create a backup of the site.
- Remove the 'Associated Products' field group in Spanish (hidden link)
- Go to WPML -> String Translation -> Search and translate 'Associated Products' if you desire to display the labels in Spanish.

Could you tell me if the field group is behaving like expected now?

Regards,
Carlos

January 10, 2020 at 4:33 pm #5270439

drewB

No results were found when running a search for 'Associated Products' on the String Translation page and the main duplication problem still exists with the field groups.

I did find some additional steps to re-create the issue.

If I perform the following steps, I end up with one instance of the field group for each language as expected and desired:

  • Delete the Spanish field group
  • Within the English field group, click the "Duplicate" under the "Translations box in order to create a Spanish instance

If I then go back and edit the English field group at hidden link and click "update", the 2nd instance of the field group will then display on the English edit screen of a page where the field group is applied. Oddly, this does not create a second instance in the Field Group list found here:
hidden link

What could be causing this to occur when "updating" the English field group?

January 13, 2020 at 11:33 am #5281343

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,
It's hard to say what is causing this behavior. I would have to escalate to our specialists and wait for them to dig deeper.

Could you confirm that the issue is solved with the steps you applied?

Regards,
Carlos

January 13, 2020 at 6:03 pm #5285047

drewB

The issue still exists since updating a field group creates a duplicate field group on the post edit screen, though the first two steps will allow the field groups to work as expected.

Step One: Delete the Spanish field group

Step Two: Within the English field group, click the "Duplicate" under the "Translations box in order to create a Spanish instance

January 14, 2020 at 12:44 pm #5289671

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

I consulted our specialists and the field group is working as expected. If following the same steps on the other field groups shows the same behavior again, then I kindly ask you to create a staging site with a copy of the live site so we can run more tests without affecting the production site.

Regards,
Carlos

January 17, 2020 at 3:28 pm #5313063

drewB

We've determined that this issue is being caused by the combination of Redis caching, ACF, and WPML. Disabling the Redis cache resolves this issue.

If you have any suggestions for making this work with Redis caching, we'd appreciate it.

January 20, 2020 at 10:51 am #5322643

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,
I'm glad to hear that the issue is solved 🙂

I would recommend to contact the support service of Redis Cache and ask them about this problem.

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos