Resolved
Reported for: WooCommerce Multilingual & Multicurrency 4.11.1
Resolved in: 4.11.2
Overview of the issue
If during WPML wizard installation you enable the multicurrency feature but you don’t set at least 2 currencies, you will see this error every time there is a call to the REST API:
Fatal error: Uncaught TypeError: Argument 2 passed to WCML\Rest\Wrapper\Products\Prices::__construct() must be of the type array, null given, called in .../wp-content/plugins/woocommerce-multilingual/classes/Rest/Wrapper/Factory.php on line 38 and defined in .../wp-content/plugins/woocommerce-multilingual/classes/Rest/Wrapper/Products/Prices.php:16
Workaround
If your project does not need the multicurrency feature, please go to WooCommerce > WooCommerce Multilingual > Multicurrency and deactivate it. Otherwise, double check that you have set it correctly and you have two currencies enable.