WPML
الحالة
محلول
النوع
خطأ برمجي
تم الإبلاغ عنه لـ
WPML Multilingual & Multicurrency for WooCommerce 4.11.1
تم الحل في
4.11.2

نظرة عامة على المشكلة

إذا قمت أثناء تثبيت معالج WPML بتمكين ميزة تعدد العملات ولكنك لم تعيّن 2 من العملات على الأقل، فسترى هذا الخطأ في كل مرة يتم فيها استدعاء REST API:

Fatal error: Uncaught TypeError: Argument 2 passed to WCMLRestWrapperProductsPrices::__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

حل بديل مؤقت

إذا كان مشروعك لا يحتاج إلى ميزة تعدد العملات، فاذهب إلى WooCommerce > WooCommerce Multilingual > تعدد العملات وعطّلها. بخلاف ذلك، تحقق جيداً من أنك ضبطتها بشكل صحيح وأن لديك عملتين ممكّنتين.

جميع المشكلات المعروفة