The uc_ups_fulfill_order_validate() function uses $response_obj->data without checking whether the data property is set. It would be better to check it and show an error message if there is no data (for example in case of network errors).

  $response_obj = drupal_http_request(variable_get('uc_ups_connection_address', ... );
  $response = new SimpleXMLElement($response_obj->data);

Comments

gabor_h’s picture

Same happens in uc_ups_confirm_shipment_submit()

longwave’s picture

Status: Active » Closed (duplicate)

Duplicate of #2109531: Shipping quotes fail without error handling which has a patch for USPS at least.