August 14, 2013

USPS API Patch for Magento Community Edition (CE)
On July 28, 2013, the United States Postal Service (USPS) rolled-out changes to their API that impact you if your Magento Community Edition store is using USPS Priority or Express shipping methods. If this is the case, it’s important to update your Magento CE store right away with the patch that Magento has made available for versions 1.4.x through at:
The shipping methods patch will also need to be applied for versions earlier than 1.7 if it hasn’t been applied already. You can download the patch from the above links and then upload it via FTP, but it’s easier to just grab the patch via wget after you have logged in via SSH. If you don’t have shell access on your account with us yet, you’ll need it to run the patch(es) and so please contact support to have it enabled.
Once you are logged in via SSH:

  1. Change directory to the root of your Magento install (
  2. Right click on link of the patch you need at and then open it in a new tab or window.
  3. Copy the URL, leaving off the part of the URL following ‘patch’ or ‘sh’, and then run: wget in your SSH terminal.

for the link:
Then run the .patch files with:
[shell]patch –p0 < patch_file_name.patch[/shell]
and the .sh files with:
[shell]patch -p0 < MAGEBP-706_CE_1.6.2.0_v4.patch
It’s recommended to run the changes by your developer first before applying the patch, and/or test it on a development site first before taking it live.
One issue I’ve seen so far is the API upgrade patch throws an error because the core files it tries to modify were already modified from the original ones for that version*. the patch tries to modify the following files:
If you do get an error because these core files were modified, you can download a clean version of the same version of Magento from their site, find the core files you modified, and copy them over to the correct directories so you have the originals back in place before running the patch. This is a good example of why Magento core files in app/code/core shouldn’t be modified, as upgrades and patches can run into errors. If your developer needs to modify core files, it’s a good to first copy them to app/code/local and then make needed changes.
If you need any assistance with running the patch, or need shell access enabled, just let our support team know!


Nexcess, the premium hosting provider for WordPress, WooCommerce, and Magento, is optimized for your hosting needs. Nexcess provides a managed hosting infrastructure, curated tools, and a team of experts that make it easy to build, manage, and grow your business online. Serving SMBs and the designers, developers, and agencies who create for them, Nexcess has provided fully managed, high-performance cloud solutions for more than 22 years.

We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.