Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
gabor_h CreditAttribution: gabor_h commentedSame happens in uc_ups_confirm_shipment_submit()
Comment #2
longwaveDuplicate of #2109531: Shipping quotes fail without error handling which has a patch for USPS at least.