Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing a PHP fatal error when trying to translate a new product in WooCommerce using WPML, which mentions:

Uncaught Error: key(): Argument #1 ($array) must be of type array, null given

, it might be due to a conflict with another plugin or the theme.
Solution:
We recommend updating all plugins and the theme to the latest available versions and testing again. If the issue persists try the following steps to identify and resolve the issue:
1) Create a staging copy of your website.
2) Deactivate all plugins that are not related to WPML or its add-ons.
3) If the error resolves, reactivate the plugins one by one or in small groups to pinpoint the problematic plugin.
4) If the issue persists, switch to a standard theme like Twenty Twenty-One to check if the problem is theme-related.
If you're unable to set up a staging site or the issue reoccurs, please contact our support team for further assistance.

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, do not hesitate to open a new support ticket.

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.

Tagged: ,

This topic contains 3 replies, has 0 voices.

Last updated by Andreas W. 2 weeks, 1 day ago.

Assisted by: Andreas W..

Author Posts
May 23, 2025 at 1:04 am #17063870

pascalM-20

Background of the issue:
I am trying to translate a product in WooCommerce using WPML. Since the recent update, I encountered an issue.

Symptoms:
I got a PHP fatal error mentioning: Uncaught Error: key(): Argument #1 ($array) must be of type array, null given in /home/404703.cloudwaysapps.com/mhdkyzmcqe/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php on line 384.

Questions:
How can I resolve the PHP fatal error when translating a product in WooCommerce with WPML?

May 24, 2025 at 6:03 pm #17068991

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It seems there is a conflict between WPML and another plugin or the theme you are using.

Could you please create a copy or stage of the website and try running it with a minimal setup to see if the issue persists?

1) Deactivate all additional plugins that are unrelated to WPML and our add-ons.

2) If the issue goes away, start by reactivating the plugins individually or activate them in small groups. This way, check where the issue recurs to identify the plugin causing the issue.

3) If this doesn't resolve the issue, please switch to a standard theme like Twenty Twenty-One to see if the issue might be theme-related.

Once we identify the cause, we can then attempt to replicate the issue and then escalate it internally. In this case, I'll provide a test site with WPML.

If you're unable to set up a copy of your website, please let me know and I'll be happy to help if you provide me admin access to the site. I would enable a private reply form for this purpose in my next reply.

Best regards,
Andreas

May 27, 2025 at 5:01 pm #17080012

pascalM-20

Hello Andreas,

Thanks for the answer. I have forgot to mention that it was happening only on new items. On products already created with a translation, I had access without any bug.

It happens only when I wanted to translate that product.

I have waited for a round of update of my installed plugins and it seems to be resolved. I will try again in next week to see if everything is fine.

Thanks!

May 28, 2025 at 1:04 am #17080936

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your message!

In case the issue occurs again, please let me know.