Some non fatal “PHP Fatal errors” with 1.6.1
-
Sporadically we encounter some PHP Fatal errors with Version 1.6.1
Using BeTheme 25.1.2.1 and WooCommere 5.8.0Just to let you know! Perhaps you any advice?
[17-Oct-2021 22:54:02 UTC] PHP Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, null given in /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-purchaseunit.php:320
Stack trace:
#0 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-purchaseunit.php(320): round(NULL, 2)
#1 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-purchaseunit.php(267): WooCommerce\PayPalCommerce\ApiClient\Entity\PurchaseUnit->ditch_items_when_mismatch(Object(WooCommerce\PayPalCommerce\ApiClient\Entity\Amount))
#2 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-order.php(222): WooCommerce\PayPalCommerce\ApiClient\Entity\PurchaseUnit->to_array()
#3 [internal function]: WooCommerce\PayPalCommerce\ApiClient\Entity\Order::WooCommerce\PayPalCommerce\ApiClient\Entity\{closure}(Object(WooCommerce\PayPalCommerce\ApiClient\Entity\PurchaseUnit))
#4 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-order.php(224): array_map(Object(Closure), Array)
#5 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php(202): WooCommerce\PayPalCommerce\ApiClient\Entity\Order->to_array()
#6 /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/class-buttonmodule.php(150): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->handle_request()
#7 /home/www/xxx/wp-includes/class-wp-hook.php(303): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(”)
#8 /home/www/xxx/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#9 /home/www/xxx/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#10 /home/www/xxx/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action(‘wc_ajax_ppc-cre…’)
#11 /home/www/xxx/wp-includes/class-wp-hook.php(303): WC_AJAX::do_wc_ajax(”)
#12 /home/www/xxx/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(false, Array)
#13 /home/www/xxx/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#14 /home/www/xxx/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#15 /home/www/xxx/wp-blog-header.php(19): require_once(‘/home/www/xxx…’)
#16 /home/www/xxx/index.php(17): require(‘/home/www/xxx…’)
#17 {main}
thrown in /home/www/xxx/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Entity/class-purchaseunit.php on line 320
- The topic ‘Some non fatal “PHP Fatal errors” with 1.6.1’ is closed to new replies.