Skip to content Skip to sidebar

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

Problem:
The client is unable to get WPML to recognize and translate flexible fields in a WooCommerce webshop using Advanced Custom Fields (ACF) registered via PHP. Additionally, when attempting to use the WPML translation editor, an error occurs stating 'File size limit exceeded' and 'unable to retrieve job content'.
Solution:
We recommend the following steps to resolve the issues:
1. Install a specific plugin from this link and follow its usage documentation to convert the field groups.
2. Verify that all groups are imported correctly by checking here.
3. Edit each group to ensure the translation preferences are set correctly.
4. Export the groups as JSON after toggling all groups at this page.
5. Delete the PHP code for the field groups once confirmed working.
6. To address the translation editor issue, exclude field choices and labels from post-jobs by adding the following line to your wp-config.php:

define('ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', false);

Then, update the page in the default language and translate it.

If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, please feel free to open a new support ticket with us for further assistance at WPML support forum.

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 8 replies, has 0 voices.

Last updated by Osama Mersal 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
February 18, 2025 at 10:15 am #16717932

Dražen
Supporter

Languages: English (English )

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

Hello,

Osama is off today, so I will take care of this.

I have checked your website and I can see you have Object cache enabled, it can sometimes cause issues. Can you please disable it and then check again?

Also, I would advise updating to the latest WPML as it brings some improvements to this process.

Go to Plugins > Add New > Commercial > Click “Check for updated" and update WPML plugins to latest versions.

Please make sure to create a backup, before doing any actions, just in case.

Regards,
Drazen

February 18, 2025 at 2:17 pm #16719528

marvinH-9

Hi Dražen,

Thanks for your reply.

I tried both of the things you said. Thing thats now happening that WPML is not recognizing my page components anymore.

See the attachment. You can see there that the wordcount is 1, while the page has some flexible page components with content.

I hope you can help me further!

Cheers

Schermafbeelding 2025-02-18 om 15.16.04.png
February 19, 2025 at 8:23 am #16722630

Osama Mersal

Hi,

The field groups post type was set to be translatable, while it shouldn't be translated, so I changed its translation preference. (Kindly check this hidden link)

After that, I opened the translation editor, which worked as expected. (Kindly check this hidden link)

Best regards,
Osama

February 24, 2025 at 8:02 pm #16743052

marvinH-9

Hi Osama,

Thanks! But as you can see the translated items are not the content on the website.

If you'd compare the left side of the translator with the actual website content you would have seen that it is not equal. The content what you see right now is lorum ipsum ;).

So far, we're still not able to translate. I also just tried with a few pages.

Can you please test with a page like 'about'. (you will also see that Yoast content will be translated, but still not the flexible fields content).

Please could you check a bit more thoroughly whats going on, I'm losing my hope a bit..

I'd like to hear from you soon!

Thanks.

February 25, 2025 at 8:58 am #16744400

Osama Mersal

Hi,

Thanks for your update. I checked the issue and found that the About page has these fields stored in the database, so they appear in the translation editor. (Kindly check this hidden link)

I created a new test hidden link, and it works correctly. (Kindly check this hidden link)

Best regards,
Osama

February 25, 2025 at 7:21 pm #16747600

marvinH-9

Hi Osama,

Great, thanks. I got it partly working now.

- The translation editor is finding my fields and content
- I can use the automatic translations

Only now when I did that I have a spanish page, but it seems to be empty. See example:
hidden link
hidden link

If I open the page in the WordPress editor I don't see any of my flexible fields appearing.

Is there still something I'm doing wrong here?

Let me know!

Cheers.

February 25, 2025 at 9:10 pm #16748112

Osama Mersal

Hi,

The field groups post type was set to be translatable, even though it shouldn't be, so I changed its translation preference.

After that, the content appeared correctly on the translated page. (hidden link)

Best regards,
Osama

February 27, 2025 at 6:43 am #16753990

marvinH-9

Hi Osama,

Thank you! I finally can now create and translate my pages, products and posts. I tried to translate a call to action custom field which is registered with wordpress through the functions.php.

Now my translation queue is not loading anymore. I get this error in my console:

Is there any possibility to force clear that queue? I have the feeling it is sometimes a bit flaky anyways.

Thanks!

Schermafbeelding 2025-02-27 om 07.41.51.png
February 27, 2025 at 10:02 am #16755005

Osama Mersal

Hi,

I checked the WPML-> Translations, and the queue worked as expected.

Best regards,
Osama

2025-02-27_12-01-26.png