Skip to content Skip to sidebar

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 6 replies, has 0 voices.

Last updated by rustumT 1 week, 2 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
July 7, 2025 at 10:18 am

rustumT

Background of the issue:
I was trying to update a post in the backend of my WordPress site. This issue occurs when I save any WooCommerce product that is not in the primary language. The problem started after updating to version 4.7.6. The issue can be seen at this URL: hidden link.

Symptoms:
I encountered an error message: 'Illegal offset type in isset or empty' in /public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 282. Instead of seeing 'Product updated', I got an 'Uncaught Error'.

Questions:
Why am I getting an 'Illegal offset type' error when saving a WooCommerce product?
How can I resolve the error to successfully update products in non-primary languages?

July 7, 2025 at 10:49 am
July 7, 2025 at 11:35 am #17208142

rustumT

Hi there. After doing a plugin conflict test. I found the issue is from this plugin: WooCommerce Multilingual & Multicurrency Version 5.5.0.
Kindly advise the next steps and how this can be fixed, even if it's just a temporary fix/patch for now. Thanks.

July 7, 2025 at 11:42 am #17208156

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To help me further debug this issue, I’d like to set up your site on my local machine and do some more digging. Could you please share the wp-content and database backup of your site? You can zip these files and send them to me using a file-sharing platform like Google Drive. That way, I can take a look and see what’s going on.

Enabled the private reply for you.

Thanks

July 7, 2025 at 2:20 pm
July 8, 2025 at 4:41 am #17211637

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The backup files only has database, can you also provide me the wp-content folder backup? Enabled the private reply for you.

Thanks

July 8, 2025 at 7:07 am #17211949

rustumT

Thanks for picking this up. The zip file was quite large and still syncing, but is completely synced now. Please check again.

July 8, 2025 at 7:46 am #17212212

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I am downloading the files, in the meantime, can you try to update WooCommerce Multilingual to the latest version and see if the problem exists? We recently released an update of the plugin.

Our WPML updates are distributed gradually. If your websites haven't received this update yet, please be patient, and you should see it within a few days.

If you want to expedite the process and receive the update immediately, follow these steps:
1. Go to the Plugins → Add New Plugin.
2. Click on the Commercial tab.
3. Then, click the "Check for updates" button.
https://wpml.org/wp-content/uploads/2020/04/wpml-force-plugin-update-1.png

Please remember to create a backup before updating, as a precaution.

Look forward to your reply.

Thanks

July 8, 2025 at 8:30 am #17212448

rustumT

Hi,

I just updated from v5.5.0 to 5.5.1 which was released today and I can confirm the issue seems to now be resolved.

I saved a product in a secondary language and it saved as normal without the error.

I believe we can mark this as resolved for now.

Thank You.