Uncaught TypeError / abstract-pr-dhl-api-soap.php:77
-
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)
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.