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: Compatibility
This topic contains 7 replies, has 2 voices.
Last updated by Nicolas V. 1 year, 6 months ago.
Assisted by: Nicolas V..
Author | Posts |
---|---|
November 10, 2023 at 12:44 pm #14776557 | |
Tom |
I am trying to copy or duplicate ACF fields to translated pages and custom posts. When I'm in my primary language and editing a Page, I click Duplicate to create the page in the Secondary language. The development site is password protected so I can provide a link and login details via private reply if required. I expected to see my ACF fields copied across to my Secondary language. The fields are set to 'Copy once' and have been working until recently. I also have another site with an almost identical setup which is still working as it should. Instead, I got no ACF content copied to the secondary language. This happens in Pages and in Custom Posts. Non ACF fields copy as they should (Featured image, WP Content field etc). |
November 13, 2023 at 1:33 pm #14789463 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Welcome to the WPML support forum. When it comes to ACF fields, setting up translation preferences for each field can be tricky. So, let's start by reviewing your configuration: 2. Go to "ACF > Field Groups" and edit your group. We have 3 different multilingual setup: 3. Because you mentioned that you duplicate your pages, you should deactivate our editor and use the native WP editor (see: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/). In that case use "Different fields accros languages" or if you use "Expert" as you mentioned most fields must be set as "Copy once". Follow the recommendations from the "Different fields accros languages" column here: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/ If all your fields are set up as recommended above and you still have issues, please provide me with a temporary admin access to the stagging site you mentioned. I have activated a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting. IMPORTANT: Before we proceed, please backup your site and database. PS: don't forget to give the name of the Field Group and the URL of a page using it where I can see the issue. |
November 17, 2023 at 1:07 pm #14862977 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hi, thanks for the access. I'm logged-in. I'll get back to you in a moment with my findings. |
November 17, 2023 at 1:33 pm #14863131 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, I could see the issue but I wasn't able to reproduce on a clean sandbox site. You can log here: hidden link The text field was filled when using duplication with 2 different tests (with our editor and with WordPress editor). I'll continue to investigate. |
November 17, 2023 at 2:13 pm #14863443 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hi again, After several tests and running some troubleshooting options, I couldn't find why it's not working as expected on your site (while it's working on my test site). I have forwarded your ticket to our second tier support. I'll get back to you as soon as I get their feedback. |
November 21, 2023 at 11:19 am #14885799 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Just a quick message to let you know that the issue seems to be related to the WP Engine cache. We're escalating your ticket to the compatibility team. |
November 21, 2023 at 2:02 pm #14887619 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hi again, We found an easy workaround for the moment: We're working on a small plugin to avoid that cache issue. We installed it as an MU plugin but we didn't manage to solve the issue yet. Thanks for your patience |
November 21, 2023 at 2:27 pm #14887915 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, We finally find the issue. WP Engine query governor was killing some queries and that why the fields would remain empty. The solution was to add the following line to your wp-config.php file in order to disable their query governor: define( 'WPE_GOVERNOR', false ); I found a couple of other plugins reporting this already: Could you please confirm the issue is fixed? |