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.
This topic contains 3 replies, has 0 voices.
Last updated by 2 weeks, 1 day ago.
Assisted by: Andreas W..