• Resolved koehlercafe

    (@koehlercafe)


    I’m using the Stamps.com USPS (Basic) plugin and have run into an issue. In placing an order there is a message that appears “There are no shipping methods available. Please double check your address, or contact us if you need any help.”

    https://ww.wp.xz.cn/plugins/woo-stamps-com-shipping-method/

    I’ve placed the plugin in debug mode as well and reloaded the cart and here is what I get:

    
    "Stamps.com debug mode is on - to hide these messages, turn debug mode off in the settings.
    
    Stamps.com AUTH REQUEST: 
    Array
    (
        [Credentials] => Array
            (
                [IntegrationID] => 290f77ac-5634-46f1-aee7-565656268574b
                [Username] => ourusername
                [Password] => ourpassword
            )
    
    )
    Stamps.com AUTH RESPONSE: 
    stdClass Object
    (
        [Authenticator] =>blah blah blah stuff that needs to be hidden
        [LastLoginTime] => 2018-03-17T02:39:07.28
        [ClearCredential] => 
        [LoginBannerText] => 
        [PasswordExpired] => 
        [CodewordsSet] => 1
    )
    Stamps.com RATES REQUEST: 
    Array
    (
        [Authenticator] =>blah blah blah stuff that needs to be hidden
        [Rate] => Array
            (
                [FromZIPCode] => customerzipcode
                [ToZIPCode] => 
                [WeightLb] => 0
                [WeightOz] => 6.00
                [PackageType] => 
                [Length] => 3.75
                [Width] => 2.75
                [Height] => 1
                [ShipDate] => 2018-03-17
                [InsuredValue] => 0
                [RectangularShaped] => false
            )
    
    )
    Stamps.com - Unable to Get Rates: Invalid SOAP message due to XML Schema validation failure. The 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:ToZIPCode' element is invalid - The value '' is invalid according to its datatype 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:string-3-10' - The actual length is less than the MinLength value.
    SoapFault Object ( [message:protected] => Invalid SOAP message due to XML Schema validation failure. The 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:ToZIPCode' element is invalid - The value '' is invalid according to its datatype 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:string-3-10' - The actual length is less than the MinLength value. [string:Exception:private] => [code:protected] => 0 [file:protected] => /public_html/ats-staging/wp-content/plugins/woo-stamps-com-shipping-method/includes/class-wf-soap.php [line:protected] => 22 [trace:Exception:private] => Array ( [0] => Array ( [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => GetRates [1] => Array ( [0] => Array ( [Authenticator] => hidden [Rate] => Array ( [FromZIPCode] => hidden [ToZIPCode] => [WeightLb] => 0 [WeightOz] => 6.00 [PackageType] => [Length] => 3.75 [Width] => 2.75 [Height] => 1 [ShipDate] => 2018-03-17 [InsuredValue] => 0 [RectangularShaped] => false ) ) ) ) ) [1] => Array ( [function] => GetRates [class] => SoapClient [type] => -> [args] => Array ( [0] => Array ( [Authenticator] => hidden [Rate] => Array ( [FromZIPCode] => 77386-2083 [ToZIPCode] => [WeightLb] => 0 [WeightOz] => 6.00 [PackageType] => [Length] => 3.75 [Width] => 2.75 [Height] => 1 [ShipDate] => 2018-03-17 [InsuredValue] => 0 [RectangularShaped] => false ) ) ) ) [2] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woo-stamps-com-shipping-method/includes/class-wf-soap.php [line] => 22 [function] => call_user_func [args] => Array ( [0] => Array ( [0] => SoapClient Object ( [trace] => 1 [_soap_version] => 1 [sdl] => Resource id #1030 [__last_request] => exp=1521340758&uid=8132186&cty=swsim&ctk=9Fbz9qgCIaoxMUz5EhrNcYQH2sY=&iid=rHcPV3RT8Uau54Q3WHYXSw==&rsid=10009&irsid=1&eac=1480531387&eacx=294031431&eac3=0&rrsid=109&raid=5000108661&resellerid=10&pexp=0&pl=&ast=3&ipaddr=hidden&ace=1521257958&rmrsid=108&mac=Juxche41Gl4V+8Tez0LvUFQghOE=77386-2083063.752.7512018-03-170true [httpurl] => Resource id #1032 [__last_request_headers] => POST /swsim/swsimv50.asmx HTTP/1.1 Host: swsim.stamps.com Connection: Keep-Alive User-Agent: PHP-SOAP/5.6.33 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://stamps.com/xml/namespace/2015/12/swsim/swsimV50/GetRates" Content-Length: 1073 [__last_response_headers] => HTTP/1.1 500 Internal Server Error Cache-Control: private Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-Xss-Protection: 1;mode=block Content-Security-Policy: frame-ancestors http://*.stamps.com https://*.stamps.com Date: Sat, 17 Mar 2018 02:39:18 GMT Connection: close Content-Length: 841 [__last_response] => soap:ClientInvalid SOAP message due to XML Schema validation failure. The 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:ToZIPCode' element is invalid - The value '' is invalid according to its datatype 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:string-3-10' - The actual length is less than the MinLength value.http://swsim.stamps.com/swsim/swsimv50.asmx [__soap_fault] => SoapFault Object *RECURSION* ) [1] => GetRates ) [1] => Array ( [Authenticator] =>hidden [Rate] => Array ( [FromZIPCode] => hidden [ToZIPCode] => [WeightLb] => 0 [WeightOz] => 6.00 [PackageType] => [Length] => 3.75 [Width] => 2.75 [Height] => 1 [ShipDate] => 2018-03-17 [InsuredValue] => 0 [RectangularShaped] => false ) ) ) ) [3] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woo-stamps-com-shipping-method/includes/class-wf-shipping-stamps.php [line] => 586 [function] => call [class] => WF_Soap [type] => -> [args] => Array ( [0] => GetRates [1] => Array ( [Authenticator] =>hidden [Rate] => Array ( [FromZIPCode] => hidden [ToZIPCode] => [WeightLb] => 0 [WeightOz] => 6.00 [PackageType] => [Length] => 3.75 [Width] => 2.75 [Height] => 1 [ShipDate] => 2018-03-17 [InsuredValue] => 0 [RectangularShaped] => false ) ) ) ) [4] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woo-stamps-com-shipping-method/includes/class-wf-shipping-stamps.php [line] => 664 [function] => get_stamps_get_rates_response [class] => WF_USPS_Stamps [type] => -> [args] => Array ( [0] => Array ( [Rate] => Array ( [FromZIPCode] => hidden [ToZIPCode] => [WeightLb] => 0 [WeightOz] => 6.00 [PackageType] => [Length] => 3.75 [Width] => 2.75 [Height] => 1 [ShipDate] => 2018-03-17 [InsuredValue] => 0 [RectangularShaped] => false ) ) [1] => exp=1521340758&uid=8132186&cty=swsim&ctk=9Fbz9qgCIaoxMUz5EhrNcYQH2sY=&iid=rHcPV3RT8Uau54Q3WHYXSw==&rsid=10009&irsid=1&eac=1480531387&eacx=294031431&eac3=0&rrsid=109&raid=5000108661&resellerid=10&pexp=0&pl=&ast=3&ipaddr=hidden&ace=1521257958&rmrsid=108&mac=Juxche41Gl4V+8Tez0LvUFQghOE= ) ) [5] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php [line] => 207 [function] => calculate_shipping [class] => WF_USPS_Stamps [type] => -> [args] => Array ( [0] => Array ( [contents] => Array ( [fb2606a5068901da92473666256e6e5b] => Array ( [key] => fb2606a5068901da92473666256e6e5b [product_id] => 3132 [variation_id] => 0 [variation] => Array ( ) [quantity] => 1 [line_tax_data] => Array ( [subtotal] => Array ( ) [total] => Array ( ) ) [line_subtotal] => 7 [line_subtotal_tax] => 0 [line_total] => 7 [line_tax] => 0 [data] => WC_Product_Simple Object ( [object_type:protected] => product [post_type:protected] => product [cache_group:protected] => products [data:protected] => Array ( [name] => Activated Charcoal Soap [slug] => activated-charcoal-soap [date_created] => WC_DateTime Object ( [utc_offset:protected] => 14400 [date] => 2014-01-18 16:58:21.000000 [timezone_type] => 1 [timezone] => +00:00 ) [date_modified] => WC_DateTime Object ( [utc_offset:protected] => 14400 [date] => 2018-03-15 17:05:32.000000 [timezone_type] => 1 [timezone] => +00:00 ) [status] => publish [featured] => [catalog_visibility] => visible [description] => [sku] => [price] => 7 [regular_price] => 7 [sale_price] => [date_on_sale_from] => [date_on_sale_to] => 
    [stores:WC_Data_Store:private] stuff goes on for several pages, hidden to save everyone's eyes.....
    
    Array ( ) [user] => Array ( [ID] => 4155 ) [destination] => Array ( [country] => US [state] => [postcode] => [city] => [address] => [address_2] => ) [cart_subtotal] => 7.00 ) ) ) ) [9] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php [line] => 345 [function] => calculate_shipping [class] => WC_Cart [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php [line] => 794 [function] => get_shipping_from_cart [class] => WC_Cart_Totals [type] => -> [args] => Array ( ) ) [11] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php [line] => 141 [function] => calculate_shipping_totals [class] => WC_Cart_Totals [type] => -> [args] => Array ( ) ) [12] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php [line] => 131 [function] => calculate [class] => WC_Cart_Totals [type] => -> [args] => Array ( ) ) [13] => Array ( [file] => /public_html/ats-staging/wp-content/plugins/woocommerce/includes/class-wc-cart.php [line] => 1227 [function] => __construct [class] => WC_Cart_Totals [type] => -> [args] => Array ( [0] => WC_Cart Object ( [cart_contents] => Array ( [fb2606a5068asdf901da92asdf473666256e6e5b] => Array ( [key] => 
    .................. l_tax] => 0 ) [totals:protected] => Array ( [subtotal] => 7.00 [subtotal_tax] => 0 [shipping_total] => 0 [shipping_tax] => 0 [shipping_taxes] => Array ( ) [discount_total] => 0 [discount_tax] => 0 [cart_contents_total] => 7.00 [cart_contents_tax] => 0 [cart_contents_taxes] => Array ( ) [fee_total] => 0 [fee_tax] => 0 [fee_taxes] => Array ( ) [total] => 0 [total_tax] => 0 ) [session:protected] => WC_Cart_Session Object *RECURSION* [fees_api:protected] => WC_Cart_Fees Object ( [fees:WC_Cart_Fees:private] => Array ( ) [cart:WC_Cart_Fees:private] => WC_Cart Object *RECURSION* [default_fee_props:WC_Cart_Fees:private] => Array ( [id] => [name] => [tax_class] => [taxable] => [amount] => 0 [total] => 0 ) ) [cart_session_data] => Array ( [cart_contents_total] => 0 [total] => 0 [subtotal] => 0 [subtotal_ex_tax] => 0 [tax_total] => 0 [taxes] => Array ( ) [shipping_taxes] => Array ( ) [discount_cart] => 0 [discount_cart_tax] => 0 [shipping_total] => 0 [shipping_tax_total] => 0 [coupon_discount_amounts] => Array ( ) [coupon_discount_tax_amounts] => Array ( ) [fee_total] => 0 [fees] => Array ( ) ) [coupon_applied_count] => Array ( ) [coupon_discount_totals] => Array ( ) [coupon_discount_tax_totals] => Array ( ) ) ) [1] => get_cart_from_session ) [1] => Array ( [0] => ) ) ) [17] => Array ( [file] => /public_html/ats-staging/wp-includes/class-wp-hook.php [line] => 310 [function] => apply_filters [class] => WP_Hook [type] => -> [args] => Array ( [0] => [1] => Array ( [0] => ) ) ) [18] => Array ( [file] => /public_html/ats-staging/wp-includes/plugin.php [line] => 453 [function] => do_action [class] => WP_Hook [type] => -> [args] => Array ( [0] => Array ( [0] => ) ) ) [19] => Array ( [file] => /public_html/ats-staging/wp-settings.php [line] => 471 [function] => do_action [args] => Array ( [0] => wp_loaded ) ) [20] => Array ( [file] => /public_html/ats-staging/wp-config.php [line] => 104 [args] => Array ( [0] => /public_html/ats-staging/wp-settings.php ) [function] => require_once ) [21] => Array ( [file] => /public_html/ats-staging/wp-load.php [line] => 37 [args] => Array ( [0] => /public_html/ats-staging/wp-config.php ) [function] => require_once ) [22] => Array ( [file] => /public_html/ats-staging/wp-blog-header.php [line] => 13 [args] => Array ( [0] => /public_html/ats-staging/wp-load.php ) [function] => require_once ) [23] => Array ( [file] => /public_html/ats-staging/index.php [line] => 17 [args] => Array ( [0] => /public_html/ats-staging/wp-blog-header.php ) [function] => require ) ) [previous:Exception:private] => [faultstring] => Invalid SOAP message due to XML Schema validation failure. The 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:ToZIPCode' element is invalid - The value '' is invalid according to its datatype 'http://stamps.com/xml/namespace/2015/12/swsim/swsimV50:string-3-10' - The actual length is less than the MinLength value. [faultcode] => soap:Client [faultactor] => http://swsim.stamps.com/swsim/swsimv50.asmx [detail] => stdClass Object ( [stamps_exception] => ) )
    
    • This topic was modified 8 years, 2 months ago by Jan Dembowski.
    • This topic was modified 8 years, 2 months ago by Jan Dembowski. Reason: Fixed boken formatting
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter koehlercafe

    (@koehlercafe)

    Resolution was this, I had a theme called Regency from themeforest, purchased back in 2012, it was version 1.3.3, in a 1.4.0 update it fixed a cart rate php file which displayed proper ratings in the cart during check out, I updated the theme and it started working, issue resolved.

    Hi,

    Not sure how you’re calculating the shipping cost, but the ship to zip code seem to be missing, can you ,try calculating the shipping with a valid address?

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘No Shipping Methods Available Error’ is closed to new replies.