SOAP ERROR
-
Several times per day the following error is showing up in New Relic:
`
E_ERROR: SOAP-ERROR: Encoding: Element ‘Major’ has fixed value ‘2’ (value ‘4’ is not allowed)
in SoapClient::call called at /var/www/vhosts/site1/wp-content/plugins/woocommerce-shipping-fedex/includes/class-wc-shipping-fedex.php (690)
in WC_Shipping_Fedex::residential_address_validation called at /var/www/vhosts/site1/wp-content/plugins/woocommerce-shipping-fedex/includes/class-wc-shipping-fedex.php (996)
in WC_Shipping_Fedex::calculate_shipping called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php (233)
in WC_Shipping_Method::get_rates_for_package called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-shipping.php (329)
in WC_Shipping::calculate_shipping_for_package called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-shipping.php (256)
in WC_Shipping::calculate_shipping called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart.php (1258)
in WC_Cart::calculate_shipping called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php (344)
in WC_Cart_Totals::get_shipping_from_cart called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php (800)
in WC_Cart_Totals::calculate_shipping_totals called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php (141)
in WC_Cart_Totals::calculate called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php (131)
in WC_Cart_Totals::construct called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart.php (1236)
in WC_Cart::calculate_totals called at /var/www/vhosts/site1/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php (140)
in WC_Cart_Session::get_cart_from_session called at /var/www/vhosts/site1/wp-includes/class-wp-hook.php (286)
in WP_Hook::apply_filters called at /var/www/vhosts/site1/wp-includes/class-wp-hook.php (310)
in WP_Hook::do_action called at /var/www/vhosts/site1/wp-includes/plugin.php (453)
in do_action called at /var/www/vhosts/site1/wp-settings.php (471)
in require_once called at /var/www/vhosts/site1/wp-config.php (153)
in require_once called at /var/www/vhosts/site1/wp-load.php (37)
in require_once called at /var/www/vhosts/site1/wp-blog-header.php (13)
in require called at /var/www/vhosts/site1/index.php (17)
`
As far as I can tell
WC_Shipping_Fedex::residential_address_validation
has no option to filter the request detail before it is submitted, so there is no possibility of interference from another plugin. What’s strange is that the WSDL file version and the value forVersion.Major
are set from the same variable$this->addressvalidationservice_version
only a few lines apart, yet the error message would indicate that the two values are different at the time the SOAP request is submitted. We are using the latest version of the plugin, 3.4.10.I am unable to reproduce the error locally. It appears to happen when customers return to the site root from either /checkout or /cart.
WooCommerce Version 3.3.5
WordPress Version 4.9.6
PHP Version 7.1
php-soap Version 7.1.18-1
- The topic ‘SOAP ERROR’ is closed to new replies.