Skip to content

Shipping API: 125000 Missing or invalid shipment digest #15

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. use CentOS6
2. send ShippingAcceptRequest

What is the expected output? What do you see instead?
Expected: Successful request and GIF Label
I see: UPS Hard Error: [125000] Missing or invalid shipment digest.

What version of the product are you using? On what operating system?
CentOS 5/6, Perl 5.8.8, PHP 5.3.10 (Joomla + Virtuemart)


On CentOS 5 everything worked fine, but when we upgraded to 6 we couldn't make 
any successful ShippingAcceptRequests to generate shipping label. Response was 
always "Missing or invalid shipment digest".

After some digging in ups-php I've found that line 55 in class.ups.php ie 

$output = preg_replace('/[\s+]{2,}/', '', $xml);

was causing this. I believe that is related to the way how Perl in CentOS6 is 
handling reg. expressions, but this somehow could be fixed in ups-php.

I've spent over 5 hours looking for this...

Original issue reported on code.google.com by woodzu123 on 4 May 2012 at 5:08

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions