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.

This topic contains 24 replies, has 3 voices.

Last updated by Jose Barajas 1 year, 8 months ago.

Assisted by: Mateus Getulio.

Author Posts
April 25, 2023 at 10:06 pm #13537193

Jose Barajas

I am trying to:
Update the English Page on my site. After adding a new acf section with content all of my translated pages are also updated but the content is missing in several places

Link to a page where the issue can be seen:
hidden link

I expected to see:
content on all the sections for the translated pages

Instead, I got:
After The first blade it seems content is missing completely or it shifted to a different blade

April 26, 2023 at 8:21 am #13538945

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jose,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I see some sections are not displayed in the French language on the Shiftleft page. Can you please let me know how you output the ACF field value and content on your site? It looks like a custom code, please share some screenshots of the code.

Also, please update WPML, ACF and its addon plugins to the latest version, refer to this documentation https://wpml.org/faq/install-wpml/#checking-for-updates

Look forward to your reply.
Thanks

April 26, 2023 at 2:46 pm #13542399

Jose Barajas

Hi Long,
We output by just referencing the acf fields in php.
The workflow for this site is that we make updates constantly to the english site and then send those pages to translations.com to translate.

The issue we where facing before was that if the acf blade where not clones then when we send the page out for translation that blade would not exist and then the translations would not align and the content would be imported incorrectly.

What happens is once we add a blade to english. The languages get that same blade but all the content gets moved around or is no longer their on the languages after the point where the section exists.

is there a way of sending a private video link so I can demo the issue for you to see.

Screenshot 2023-04-26 at 7.33.45 AM.png
April 27, 2023 at 4:38 am #13545991

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Please do not share the credentials if you do not see the private reply, you can ask me or a supporter to enable it.

I notice that you are using the WordPress editor for the page, that means you need to edit the content in the second languages manually and should change all custom field preferences to "Translate" or "Copy Once". Please read more in the documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Also, if you need to replicate the issue from scratch and investigate the issue further on a clean installation of WordPress and WPML, please login with this link
hidden link

Let me know if you can replicate the issue and steps to do that.

Look forward to your reply.
Thanks

April 27, 2023 at 5:33 am #13546051

Jose Barajas

All fields have been set to either copy once or translation on my enviroment . The main custom field page builder has to be clone to support translations being sent to translations.com followed the documentation above for the fields. I can not install wpml acf on your enviroment to duplicate the changes.

April 27, 2023 at 8:06 am #13547131

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

After moving a section (CTA - Free Trial) from the bottom to the top in the English language, and saving changes, I see some content on the frontend in the French language is missing.

Then I switch to the French language to edit the page and manually click on the Update button. Now I see the content of the section displayed correctly in the French language.

So please try to:

1. Update ACF and ACF Multilingual to the latest version.

2. Disable all plugins except WPML, ACF and their addon.

then check the issue again.

Look forward to your reply.
Thanks

April 27, 2023 at 11:53 am #13549303

Jose Barajas

Hi Long,
WPML and its plugins have been Updated I disabled all of the plugins except for ACF, WPML, And Our Custom plugins for custom post types.
I am still facing this issue
thanks,
Jose

April 28, 2023 at 3:19 am #13554017

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I do not see the plugin ACF Pro in the latest version 6.1.4 and I am also not able to install some plugins on your site due to some limitations.

Can you please create a full backup of your site and database with the plugin Duplicator and share the backup file with me?
I will restore your site on my localhost and investigate the issue further. Your next reply is set to private to share the info.
Link to the plugin: https://wordpress.org/plugins/duplicator/

Additionally, please try to add this code to the file wp-config.php and see if it helps, right before the /* That’s all, stop editing! Happy publishing. */ line.

define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false );

Look forward to your reply.
Thanks

April 28, 2023 at 10:28 am #13556693

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

After restoring your site on my local host, I see the issue here is, in the English language, when you drag and drop a section "Related Resources" to 2nd position, then other sections will be re-indexed, but the value does not look updated with the new indexed of sections in the French language.

Please check these screenshots:
- Before changing the section position: hidden link
- After hidden link

Then I go to Custom fields > Edit the field group "Page Builder (Sections)" > Set the field "section" preference to Translate to remove the copy position and now you can see the issue does not happen.
Please check this screenshot
hidden link

Look forward to your reply.
Thanks

April 28, 2023 at 12:11 pm #13557401

Jose Barajas

This is not a viable solution I need the position and blades to be synchronized across sections otherwise we have to manually change and add new blades or move postion across all languages every time we want to make a new change.

The Clone section should be synchronizing the fields and adjust the content accordingly without breaking the page. This is not the expected behavior when we think of cloning the sections across all languages.

I was told by a previous person on wpml I needed to make this a clone section so that when I sent out the pages for translation the section existed for the content to be placed in.

April 28, 2023 at 5:50 pm #13559341

Jose Barajas

Per the wpml documentation
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Flexible layout should be copy or copy once not translate

April 30, 2023 at 8:14 am #13562187

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Follow this documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

The field Flexible Content preference is default set to:

- "Copy" if you use the mode "Same fields across languages" => The translation editor should be "Advanced Translation Editor".

- "Copy Once" if you use the mode "Different fields across languages" => The translation editor should be "WordPress Editor"

=> So if you use the WordPress Editor, you should set the field preference to "Copy Once" or "Translate".

=> "Copy Once": This option copies the value of the field from the default language, but the value of the field can be changed later in the WordPress native editor. After the first copy, it will not be kept in synchronization with the default language.

So in the end, you need to translate and set the order of the sections manually like the "Translate" preference.

=> If you want to sync the order of this section automatically across languages, please use the Advanced Translation Editor. I've tested this issue on the local host and see it works correctly, the field value is not disappeared like that.

Refer documentation: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/

I hope that makes sense.

April 30, 2023 at 4:53 pm #13563031

Jose Barajas

Hi Long ,
Can we cordinate a call or working session for these issues this change here does not address my Issue. I tried adding a custom class for example and that field does not move around when i try to drag and drop items.

The amount of edits we make it does not make sence to have everything set as copy once. We send the pages off to translations to a service called translations.com and they take their time and send the languages which we pull in to the site. while we wait for those translation the page would appear broken.

If we wanted to add one blade and all the options we would have to do this 3 more time for each language.

Using the advanced translator sounds good but its confusing as half of the items from my understanding you're saying have to be managed there where as options like true false,select lists etc, have to be managed per translation page. The Advanced translator does not resolve the issue for those items either as they change on moving blades around still.

Simply put copying acf sections across languages should not move the content on the translation out of sync. Regardless if we move a section or add a new section. That should not be expected behavior.

Thanks

April 30, 2023 at 11:54 pm #13563553

Jose Barajas

I have Spent the day trying this advacned editor and i still run across the same issue where not all fields are synced and the pages break afterwards (field options like cta or colors are missing when moving blade on english)
hidden link

May 1, 2023 at 12:06 am #13563557

Jose Barajas

hidden link
secondary test duplicated a page reordered the content some content still went missing even though i used wpml editor