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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 8 replies, has 1 voice.

Last updated by Osama Mersal 6 days, 11 hours ago.

Assisted by: Osama Mersal.

Author Posts
February 11, 2025 at 10:04 pm #16693743

Ayelet Oz

Background of the issue:
I updated WPML and now theme definitions in WordPress don't work in the secondary language. I am working on a site under development and trying to set up a multilingual theme. The theme settings fields are set to expert, and when I try to click on the save button, I get an error: Uncaught TypeError: Illegal offset type in isset or empty in /home/domains/variscite.mipo.co.il/public_html/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php:783. I am following the WPML documentation.

Symptoms:
Theme definitions in WordPress don't work in the secondary language after updating WPML. Error: Uncaught TypeError: Illegal offset type in isset or empty.

Questions:
Why don't theme definitions work in the secondary language after updating WPML?
How can I resolve the error: Uncaught TypeError: Illegal offset type in isset or empty?

February 12, 2025 at 8:44 am #16694651

Ayelet Oz

can I speak to a supporter about this please?

February 12, 2025 at 11:45 am #16696170

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please go to WPML-> Settings-> Post Type Translation section and set the following post types to "Not Translatable":

* acf-field-group
* acf-taxonomy
* acf-post-type
* acf-ui-options-page

❌ Please backup your database before the above steps ❌

After that, please check the theme options page in both languages. Kindly check this guide to know more about translating options pages.

Best regards,
Osama

February 16, 2025 at 8:48 am #16710218

Ayelet Oz

My WPML plugins are updated, but ACF PRO is not updated. Could this be causing the problem?

February 16, 2025 at 8:56 am #16710224

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please follow the steps in my previous reply and check the issue. If it persists, please make sure to use the latest versions of WPML, ACF, and WordPress core.

Best regards,
Osama

February 19, 2025 at 8:31 am #16722669

Ayelet Oz

Now everything is updated and I set post types you said to "Not Translatable".

However, I still have this error when trying to save theme settings in secondary language:
PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in public_html/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php:727.

I set it to "Same fields across languages" so they'll have the same structure and content will be able to get translated, but I get empty values for some fields in secondary language even though they have non empty values in default language.

Help will be appreciated!

February 19, 2025 at 8:42 am #16722728

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

February 19, 2025 at 10:50 am #16723647

Ayelet Oz

In addition, when I'm looking at theme settings, it displays three sets of theme settings values, one for each language, instead of only the one that's relevant to the language I'm in.
Another thing: In the menu (mega menu), the urls used to fit the current language, and now urls in the menu are only of the default language, even though I'm in secondary language.

Is it possible to have a video meeting with shared screen instead of sending access details?

February 19, 2025 at 11:49 am #16724079

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm afraid that we don't provide video chat support. Instead, we have a live chat support.

Please open a new ticket, and if we have a chat supporter available, it will automatically open a new chat.

Best regards,
Osama