Reported for: WooCommerce Multilingual & Multicurrency 5.0.0
Resolved in: 5.0.1
Overview of the issue
If you update to WooCommerce Multilingual 5.0.0, but have a version of the WPML core plugin older than 4.5.2, you will get the following error:
PHP Fatal error: Uncaught TypeError: Argument 3 passed to WCML_Switch_Lang_Request::__construct() must be an instance of WPML\Core\ISitePress, instance of SitePress given, called in …/wp-content/plugins/woocommerce-multilingual/wpml-woocommerce.php on line 62 and defined in …/wp-content/plugins/woocommerce-multilingual/inc/wcml-switch-lang-request.php:16
Please update your WPML Multilingual CMS plugin to the latest version available before updating to WCML 5.0.0.