• Resolved dervonz

    (@dervonz)


    Sporadically we encounter some PHP Fatal errors with Version 1.6.1
    Using BeTheme 25.1.2.1 and WooCommere 5.8.0

    Just 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

    • This topic was modified 3 years, 1 month ago by dervonz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @dervonz

    thank you for reaching out to us, we are here to help.
    I have not encountered this issue before, so we would like to take a closer look into this.
    We would like to review your logs and the system report to identify if your situation might be related to an already known issue. You can copy the logfiles from here:
    – WooCommerce > Status > Get system report > Copy for support
    – WooCommerce > Status > Logs > select “woocommerce-paypal-payments-integration-\[…\]” in the dropdown and click on view.
    If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/
    (please add the URL of this thread in the ticket as well)

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @dervonz

    this issue should have been resolved in our last release.
    Since we haven’t heard back from you, I’m going to mark it as resolved.
    In case you’re still having problems, feel free to let us know!

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some non fatal “PHP Fatal errors” with 1.6.1’ is closed to new replies.