- 状态
- 已解决
- 类型
- Bug
- 报告对象
- WPML Multilingual & Multicurrency for WooCommerce 5.0.0
- 解决版本
- 5.0.1
问题概述
如果您更新到 WPML Multilingual & Multicurrency for WooCommerce 5.0.0,但您的 WPML 核心插件版本低于 4.5.2,您将遇到以下错误:
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
临时解决方法
在更新至 WCML 5.0.0 之前,请将您的WPML Multilingual CMS插件更新至最新可用版本。