This thread is resolved. Here is a description of the problem and solution.
Problem:
You are working on a site under development and encountered a problem with duplicate ACF fields from different language fields. After setting all field groups to 'Same fields across languages' and removing duplicates, the data in the fields was saved for all languages in the admin. However, on the site, two out of three languages display correctly, but the third shows an error: 'Uncaught Error: Illegal offset type in isset or empty'.
Solution:
We recommend checking a similar support ticket that might help resolve the issue you are facing: https://wpml.org/forums/topic/fatal-error-uncaught-typeerror-illegal-offset-type-in-isset-or-empty-in-var-w/
Before making any changes, please back up your database first.
Additionally, verify if the ACF options were translated in other languages using the format "%options_(language_code)_resources%", where (language_code) is replaced with the actual language code.
Please note that this solution might be outdated or not applicable to your specific 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. If the issue persists, please open a new support ticket 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.
This topic contains 3 replies, has 0 voices.
Last updated by 6 days, 21 hours ago.
Assisted by: Andrey.