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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am working on a site under development and encountered a problem with duplicate ACF fields from different language fields. Your employee advised me to remove the duplicates for other languages and set all field groups to 'Same fields across languages' because we have the same fields for all languages, only the texts are different. I did this, and the data in the fields was saved for all languages in the admin.
Symptoms:
On the site, 2 out of 3 languages show correctly, but on the third, I get an error: Uncaught Error: Illegal offset type in isset or empty in /var/www/html/dev.lanet.click/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 727.
Questions:
How can I resolve the error related to illegal offset type in ACF fields?
Why does the error occur only in one language and not the others?
Have you checked other possible languages in which the ACF options were translated? For example, "%options_(language_code)_resources%", where (language_code) is replaced with the other possible language.