Background of the issue:
I am trying to save a product in the Admin area of my WordPress site. During this process, I encountered an error. The error log is as follows: [01-Jul-2025 13:25:34 UTC] PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /home/stoffenv/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:282. The stack trace indicates issues with WPML_Element_Translation and WCMLSynchronizationHooks. I was attempting to save a product when this issue occurred.
Symptoms:
I received a PHP Fatal error indicating an 'Uncaught TypeError: Illegal offset type in isset or empty' in the WPML plugin files. The error occurs when trying to save a product.
Questions:
Why am I receiving a PHP Fatal error when saving a product?
How can I resolve the 'Illegal offset type in isset or empty' error in WPML?