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.
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:
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.