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.
Our next available supporter will start replying to tickets in about 10.83 hours from now. Thank you for your understanding.
This topic is split from https://wpml.org/forums/topic/preg_match-compilation-failed-regular-expression-is-too-large/
This thread is resolved. Here is a description of the problem and solution.
Problem: There is an error when activating WPML InvalidArgumentException: element_id and type do not match for element_id:62369 the database contains post_product_variation while this function was called with post_product in /wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32
Solution: see Relevant Documentation