• Caught this one today, no apparent ill effects. Unfortunately I wasn’t told how it was produced either.

    PHP Fatal error:  Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/abstract-pr-dhl-api-soap.php:77
    Stack trace:
    #0 /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/abstract-pr-dhl-api-soap.php(77): round('', 2)
    #1 /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-soap-label.php(930): PR_DHL_API_SOAP->maybe_convert_weight('', 'kg')
    #2 /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-soap-label.php(65): PR_DHL_API_SOAP_Label->set_message()
    #3 /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/abstract-pr-dhl-api.php(37): PR_DHL_API_SOAP_Label->get_dhl_label(Array)
    #4 /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-paket.php(49): PR_DHL_API->get_dhl_label(Array)
    #5 /srv/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php(264): PR_DHL_API_Paket->get_dhl_label(Array)
    #6 /srv/wp-includes/class-wp-hook.php(307): PR_DHL_WC_Order->save_meta_box_ajax('')
    #7 /srv/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #8 /srv/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #9 /srv/wp-admin/admin-ajax.php(187): do_action('wp_ajax_wc_ship...')
    #10 {main}
      thrown in /srv/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/abstract-pr-dhl-api-soap.php on line 77

    PHP 8.0.21
    WP 6.0.1
    WC 6.7.0
    DHL 2.9.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter isarisar

    (@isarisar)

    One more unrelated warning:

    PHP Warning: Trying to access array offset on value of type int in /srv/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php on line 1338

    Plugin Author Shadi Manna

    (@shadim)

    Can you let us know how to recreate this issue so we can test it on our end? What are the steps you took to get these warnings?

    Thread Starter isarisar

    (@isarisar)

    Hi Shadi, sorry, I don’t know how either came about.

    Though the first report’s stack trace does reveal that somehow PR_DHL_WC_Order->save_meta_box_ajax got invoked with the empty string.

    Plugin Author Shadi Manna

    (@shadim)

    Is this still happening or was it a one-time event?

    Thread Starter isarisar

    (@isarisar)

    The fatal error with round() occurred twice yesterday.

    Plugin Author Shadi Manna

    (@shadim)

    We will review and fix this soon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught TypeError / abstract-pr-dhl-api-soap.php:77’ is closed to new replies.