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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
May 9, 2023 at 4:57 pm #13616239

markF-40

I am trying to:

Switching between languages without any style changes / errors.

Link to a page where the issue can be seen:

hidden link

I expected to see:

Styles carried across both languages.

Instead, I got:

Styles break on the non-default language. This would seem to be something related to ACF option fields we have for some theme settings. On the default theme, these work as expected. When switching to a new language, all these fields values are coming up as empty and creating some errors throughout the site because of that.

May 10, 2023 at 3:56 am #13618195

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi Mark,

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

Please go to ACF > Edit the field group (options page) and set the field mode to "Same fields across languages" and save the options page to see if it helps. Please read more in the documentation
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


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

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

Look forward to your reply.
Thanks

May 10, 2023 at 10:43 pm #13626671

markF-40

Hi Long,

I've updated the memory limit locally on my machine and that is how I have the field set (Same fields across languages) but I'm still running into this issue.

I've managed to get past some of the color styling issues by just pulling some of the theme colouring options out of the custom fields, but none of my custom fields are working properly. Everything, even on page (not just options) will not display properly.

May 11, 2023 at 2:14 am #13626807

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

Thank you for your feedback.

Please let me know where I can see the issue on your site, then I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

The topic ‘[Closed] All ACF Option fields return null / empty on additional languages’ is closed to new replies.