Skip Navigation

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

Problem:
The client updated all plugins and noticed that when visiting the translated page with Elementor, the field lost the link to the original Advanced Custom Fields (ACF).

Solution:
1. We asked if the issue was present in the translated version of the page or also in the original one.
2. We suggested increasing the WordPress memory limit as WPML requires a minimum of 128MB. The client should add the following code to the

wp-config.php

file, right after the database information:

define('WP_MEMORY_LIMIT', '256M');<br />define('WP_MAX_MEMORY_LIMIT', '256M');

3. We identified that the "Field Group" Custom post type was set as "translatable", which it should not be. To resolve this, the client should:
- Create a site backup.
- Delete the translated language field groups in ACF, leaving only the default language ones, and remove them permanently.
- Set the "Field Group" Custom post type to NOT TRANSLATABLE in WPML > Settings > Custom post type translation.
- Ensure the field group's translation preferences are correctly configured as per our guide: Translate sites built with ACF.
- Resend the page containing the Elementor widget configured with ACF from WPML > Translation management.

If these steps do not resolve the issue or if the solution is outdated or not applicable, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that the latest versions of themes and plugins are installed. If the problem persists, 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.

This topic contains 1 reply, has 2 voices.

Last updated by Alejandro 11 months ago.

Assisted by: Alejandro.

Author Posts
February 12, 2024 at 12:25 pm #15293102

Raul Pina

Hello.
I updated all the plugins.
When I go to the translated page with elementor, the field appears to lost the link to the original ACF.
Check image please.

Captura de ecrã 2024-02-12, às 12.19.53.png
February 13, 2024 at 12:44 pm #15297566

Alejandro
Supporter

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

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

1) Hello, are you seeing this change in the translated version of the page or also in the original one?

2) One of the reasons could be that you have way too little memory and are not meeting our minimum requirements, which could've basically make calls to the db that weren't successful or made any change that didn't go through because of that.

WPML needs a minimum of 128MB of memory to work correctly and it seems you are not meeting this requirement.

Kindly add this code into your wp-config.php file, right after the database information:

 

define ('WP_MEMORY_LIMIT', '256M');
define ('WP_MAX_MEMORY_LIMIT', '256M');

3) Another problem you have is that you have the "Field Group" Custom post type set as "translatable" when it shouldn't (and it isn't by default). this is most likely the cause of the problem if you see the relation lost on the translated languages and not in the original.

To fix this first please:

- Create a site backup
- Go to ACF > Field groups > Delete the ones on the translated languages and leave the ones on the default language (Delete them permanently, even from the trash bin)

- Go to WPML > Settings > Custom post type translation > Find "Field group" and then set it to NOT TRANSLATABLE

- Now make sure the different field group's translation preferences are correctly configured as seen in this guide: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/ --> https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#choosing-how-to-translate-field-groups

------------------
NOTE:
If you use our translation editor, then use "same fields across languages", otherwise if you use the native WordPress editor then you're better off with "Different fields across languages".
------------------

- once you make all these changes, you're ready to resend the page that contains the elementor widget configured with ACF. do it from WPML > Translation management this time and translate the page to send the new changes to the translations.

Try it out and let me know how it goes.