Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing issues with missing blocks of Advanced Custom Fields (ACF) content on the German pages. Although translations were visible in the WPML editor, they were not appearing in the WordPress editor.

Solution:
We reviewed the WPML->Settings->Custom XML configuration and found conflicting XML settings. We removed most of the conflicting XML, which should resolve the issue. We also noticed that the Flexible Sections field was set to 'Same fields across languages', which should allow for translation without additional settings. We suggested that the client create a sample test page or duplicate the homepage to see if the problem persists on new pages.

If you're experiencing similar issues, we recommend checking your WPML->Settings->Custom XML configuration for any conflicts and ensuring that your fields are set correctly for translation. If the problem continues, try creating a new test page or duplicating an existing page to check if the issue is resolved.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket for further assistance.

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.

Tagged: 

This topic contains 16 replies, has 3 voices.

Last updated by Shekhar Bhandari 1 year ago.

Assisted by: Shekhar Bhandari.

Author Posts
March 18, 2024 at 10:29 am #15420280

martinv-63

I am trying to: get all the ACF content translated

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

I expected to see: Translations in all languages of all blocks used

Instead, I got: Missing blocks of ACF content on the German pages. Backend shows translations in the WPML editor, but in the WP editor the blocks are missing.

A good example is the home-page. On the Dutch and English page there is a block with the titles "Optimum Assesment Platform" and "Services" with lists in it. The English translation is fine. However in the German page these blocks (and more) are missing.

This isn't only happening with this block on this page: several pages have missing blocks, on some languages. The page hidden link
vicios/consultoria/ for example is also missing blocks in French.

Trying to make an exact copy of the pages does not reproduce the issue. However, in making new pages the error sometimes occurs. The system seems thus unrealible.

We tested this in the backend with a neutral theme (twenty sixteen and twenty twentyfour) and all plugins disables except for WPML, string stranslations, ACF Pro and WPML/ACF. The blocks don't reappear, also not after saving the translations that are visible when working in the WPML editor.

Can you send your reply also send to our developer Kees Alders of Klokwerk-Design:: klokwerk@klokwerk-design.nl

Hope you can help.

March 18, 2024 at 10:37 am #15420343

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi,

thanks for contacting us.

Unfortunately, we can't send replies to other mails then the one registered in the account.

What kind of fields are the ones you're having issues with? Which kind of setting do you have (expert, same fields across languages, different fields across languages)

March 18, 2024 at 11:00 am #15420473

martinv-63

Hi Laura,

This is OK, our client will send the communication to me then. Thanks for your super quick reply.

The blocks considered are as far as I can see all "flexible content" blocks, so various fields that are grouped in a flexible content block.

The site uses "expert" and the settings used on the fields are various. However, for testing reasons on the home page I set all the individual fields to "translate". On saving, the issue remained. I also tested if the issue still remained if I switched the setting tot same fields accross languages temporarily, go to the home page, saved it again - and it did.

Hope you can shed some more light.

best regards
Kees

March 18, 2024 at 1:36 pm #15421451

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi Kees,

Flexible content needs to bei either set to "copy" (if you want to use the same fields on translated languages) or "copy once" (if you want to use different fields on translated languages). If they're set to translate that's likely the issue.

Please check https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#setting-translation-preferences-for-repeater-fields
and https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

March 18, 2024 at 3:24 pm #15422214

martinv-63

Hi Laura,

Thanks for making that clear. It doesn't solve the issue though, but changes it. If I manually tick all the boxes on the homepage on "copy" (there are a lot with many different statuses) and click apply (twice) and save the page and clear the cache, I see that many boxes remain set on copy once or translate.

So it might be the issue, but the issue is than that the boxes cannot be set to the right status.

Is there a way to bulk set all those fields by the way? Maybe for the page, or maybe for the whole website?

best regards
Kees

Screenshot 2024-03-18 162315.png
March 19, 2024 at 4:33 am #15424031

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello @martinv-63,

I will be helping you further on the issues.

Changes are done on the page or WPML->Settings->Custom field configurations are applied globally. You can also go to ACF Field settings and change this, this will be applied for all sites.

If the field settings are reverted, can you go to WPML->Settings->Custom field settings and see if they have a lock icon? If yes, click on the lock icon and change the settings.

If there is no lock icon and the problem exists, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

March 19, 2024 at 2:14 pm #15426897

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The details aren't working, it says

Fout: het wachtwoord dat je hebt ingevoerd voor de gebruikersnaam *** is onjuist. Je wachtwoord vergeten?

Can you please update the details? you can edit your previous private reply.

Also, provide me with a page where I can see the flexible fields.

I look forward to your reply.

Thanks

March 19, 2024 at 3:28 pm #15427284

martinv-63

Hi Shektar - I'm sorry, indeed, it didn't work: I set a new password and checked it, it should be working now.

The concerned fields are in the ACF field group "flexible sections". Those are used on our examples. The home page, which I use for checking most of the time, is here on the backend:

hidden link

The other example page is here:
hidden link

regards,
Kees

March 19, 2024 at 5:31 pm #15428047

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I went to WPML->Settings->Custom XML configuration and noticed the following XML were added

<wpml-config>
  <custom-fields>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">optimum_homepage_header</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">optimum_homepage_header_0_content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">optimum_homepage_header_content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_0_center_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_center_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_columns_list_col_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_0_columns_list_0_col_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_0_columns_list_1_col_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_iat_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_1_iat_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_3_iat_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_cta_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">cta_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_image_and_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">image_and_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">case_quote</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_services_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_center_text_section_center_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_11_center_text</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_*_tac_content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_actual_slider</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_logos_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_text_and_counter</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">text_and_counter</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_quote_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_usp_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_two_columns_sec</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_0_blocks_list_0_tb_desc</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_team_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_latest_actual</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_video_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_cta_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_locations_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_images_slider</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_two_blocks_with_labels</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_text_and_laptop</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_related_posts</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_knowledge_section</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_cta_section_2_content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_1_content</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_3_locations_0_loc_info</custom-field>
    <custom-field action="translate" translate_link_target="1" convert_to_sticky="1">flexible_sections_10_tac_content</custom-field>
  </custom-fields>
</wpml-config>

This conflicted with the settings that you were trying to save, I removed most of it, so can you try to make a change and see if it helps?

Also, I see hidden link Flexible Sections is set as Same fields across languages, which should allow you to translate the pages without the need of any settings.

I believe the old translated page is somehow affected, so can you try to create a sample test page or duplicate the homepage itself and see if it works there.

Look forward to your reply.

Thanks

March 21, 2024 at 5:43 pm #15437965

martinv-63

Hi Shekhar,

Thanks for getting into it again. I could not recreate the issue earlier by making a new page with the same fields as the homepage: the error was inconsistent on this. However, it is consistent on the affected pages. I made a copy of the Home Page (called Home - kopie), and the issue remains: I let it translate and the error remains. I also cannot reset the settings in the bottom of the page editor.

The XML edited, can it be done by a user without being aware? Or should I ask the builder for more information? I don't think there are any users in the organization doing this, but I can also ask around.

Please let me know if you have any ideas. I will be offline the next two days, but back on my desk on sunday.

best regards
Kees

March 22, 2024 at 4:39 am #15438711

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I deleted the existing translations and re-translated them and the issue is resolved.

Please check what I did: hidden link

Re-translating already translated content will not require any credits as WPML uses translation memory. https://wpml.org/documentation/translating-your-contents/how-wpml-keeps-track-of-your-translations/

Let me know if this works for you. I already performed the steps for the homepage in German and Spanish.

Thanks

March 26, 2024 at 2:09 pm #15451655

martinv-63

Hi Shekhar, thank you so much for your help so far. We tested a few pages and the results seem indeed promising. We will test all of our cases and then continue testing to see if the issue reappears of course, but for this conversation the case can be closed indeed - we just come back when one of the future tests fail, but let's assume it will not.

Just some additional questions: the xml that was the culprit, we don't know who could have created it and why. Is that something that only admins can do? And whith what purpuse could anyone do that?

March 27, 2024 at 8:18 am #15453842

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Just some additional questions: the xml that was the culprit, we don't know who could have created it and why. Is that something that only admins can do? And whith what purpuse could anyone do that?

The XML is a configuration file, the changes we do from the admin (WPML->Settings) can be defined on the configuration and it will be set automatically. Most themes and plugins authors use this so while user uses the product, the fields are already set correctly.

This can be added by admins in WPML->Settings->Configurations.

Let me know if this info helps.

Thanks

March 27, 2024 at 9:46 am #15454397

martinv-63

Thanks for your info - I get it in as far as I understand it will be pretty hard to locate the culprit?

March 27, 2024 at 10:09 am #15454529

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

yes, you are correct.