Site: US UK AU |

How to patch your Magento 1 store

How to patch your Magento 1 store

Stay informed

As a Magento store administrator, it is your responsibility to stay current on patch releases. We do not monitor our clients’ Magento versions or their patches, and we do generally do not notify our clients of new patches as they are released.

To stay current, we urge all clients to sign up for security alerts at the Magento website. In addition, watch for alerts posted within the Administrative area of your specific Magento installation or installations.

How to install patches

Apply Magento patches immediately upon release. Most releases address significant security threats. Ignoring them exposes your store and your customers to malicious activity. 

ATTENTION: We strongly recommend you enlist the services of a developer when applying patches. Some patches may affect your store in unpredictable ways or cause downtime. If you do not yet have a developer, consider starting your search with our list of Magento development partners.

Step 1: Back up your store

ATTENTION: Always back up you store before installing a patch.

See How to back up your Magento 1 store.

Step 2: Download the patch

Visit the Resources page of the Magento website.


  2. Locate your desired patch, select your format, and click DOWNLOAD. If you are unsure of which patch to download, scroll to the ver 1.9.x section and download the first one.

    ATTENTION: Your most current version may vary from the one pictured below.

Step 3: Disable the compiler

The compiler is disabled by default. If you have not previously enabled the compiler, skip to Step 4. If you have previously enabled the compiler, or are unsure:

  1. From the Magento Admin panel, select System > Tools > Compilation.

  2. Choose the option that applies to you:

    1.  If the compiler is disabled, go to Step 4: Install the patch.

    2. If the compiler is enabled, click Disable.

 Step 4: Install the patch

Choose your method:

Method 1: Use SSH

ATTENTION: To use this method, you must first enable SSH on your account. See How to enable SSH for details.

Method 2: Run a script

  1. Upload the patch files to the root of your [magento] installation folder.

  2. Verify the compiler is disabled.

  3. Use a text editor to create a file named patch.php containing the following script, but replace patch_file_name with the actual file name:





    echo "Done";


  4. Upload the patch.php file to the root of your [magento] installation folder.

  5. Run the script below, but replace with your domain name.

    If you see the message below, installation was successful:

    Checking if patch can be applied/reverted successfully...

    Patch was applied/reverted successfully.


  6. After installing the patch, delete the patch.php file from your server. If you encounter an error and are a Nexcess client, note the error and contact our Support Team.

  7. Refresh your cache from the Magento Admin panel by selecting System > Cache Management, then Flush Magento Cache.

  8.  If your store is compiled, rerun the compiler. See Step 3: Disable the compiler for more information. 

Method 3: Patch files locally and upload

Although it is possible to download your site to your local machine, execute the patch, and then upload the patched files to your server, this method should only be attempted by experienced Magento developers.

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to change Magento base URLs
Added on Tue, Jun 12, 2018
What is Turpentine?
Added on Thu, Aug 28, 2014
What are some useful Magento scripts?
Added on Mon, Oct 13, 2014
How to patch your Magento store
Added on Mon, Jan 11, 2016
How to set up outgoing SMTP email for Magento
Added on Thu, Jul 5, 2018
How to install Magento CE v1.8 and later
Added on Thu, Mar 6, 2014
How to enable the Magento profiler
Added on Thu, Feb 25, 2016
How to set the return-path email in Magento
Added on Thu, Oct 30, 2014
How to optimize Magento performance
Added on Mon, Jul 29, 2013
How to configure CDN access for Magento
Added on Wed, May 16, 2018