Division by Zero Error
-
Hallo,
da wir Meterware verkaufen (Stoffe) sind in unserem Shop auch dezimale Mengenangaben und Mengen kleiner als 1 m?glich. Zum Beispiel 0,3 Meter eines bestimmten Stoffes.
Das Paypal Plus PlugIn wirft aber leider folgende Fehlermeldung aus, wenn eine Ware mit einer Menge kleiner als 1 im Warenkorb liegt. Mit Mengen gr??er als 1, selbst wenn diese dezimal sind, gibt es keine Probleme.
Was kann ich tun?Warning: Division by zero in wp-content/plugins/woo-paypalplus/src/WC/Payment/CartItemData.php on line 50
Fatal error: Uncaught InvalidArgumentException: Price is not a valid numeric value in wp-content/plugins/woo-paypalplus/lib/PayPal/Validation/NumericValidator.php:23 Stack trace: #0 wp-content/plugins/woo-paypalplus/lib/PayPal/Api/Item.php(129): Inpsyde\Lib\PayPal\Validation\NumericValidator::validate(‘inf’, ‘Price’) #1 wp-content/plugins/woo-paypalplus/src/WC/Payment/OrderDataCommon.php(104): Inpsyde\Lib\PayPal\Api\Item->setPrice(‘inf’) #2 wp-content/plugins/woo-paypalplus/src/WC/Payment/OrderDataCommon.php(79): WCPayPalPlus\WC\Payment\OrderDataCommon->get_item(Object(WCPayPalPlus\WC\Payment\CartItemData)) #3 wp-content/plugins/woo-paypalplus/src/WC/Payment/WCPayPalPayment.php(200): WCPayPalPlus\WC\Payment\OrderDataCommon->get_item_list() #4 wp-content/plugins/woo-paypalplus/src/WC/Payment/WCPayPalPayment.php(136): WCPayPalPlus\WC\Payment\WCPayPalPayment->get_or in wp-content/plugins/woo-paypalplus/lib/PayPal/Validation/NumericValidator.php on line 23
The page I need help with: [log in to see the link]
- The topic ‘Division by Zero Error’ is closed to new replies.