If you have SSH access, it would be more simple to apply the patch via SSH.

If you have no SSH access to apply the patch, you can simply upgrade your installation to Magento 1.9.3.3 version which includes all the latest security patches (SUPEE-5344,SUPEE-5994,SUPEE-6285,SUPEE-6482,SUPEE-6788,SUPEE-7405,SUPEE-8788, SUPEE-9652,SUPEE-9767). If Magento upgrade is not possible in the moment due to some reason you still can apply the patch via FTP/sFTP upload as shown in this article.

If you wish to save time and have us to install these patches for you, simply click here to order installation.

 

Preparations

  • Disable Magento Compiler is an operation performed before every code change like installation of Magento Connect extensions, Magento upgrade or manual changes in code files.

    Magento Compiler is a plain PHP class used to combine PHP class definitions into files under includes/src/ directory. At this time, in most cases this is obsoleted by native PHP opcode caches such as APC, xCache, eAccelerator, Zend Opcache, ionCube Accelerator and so on, you can find the list of opcode caches here. So, if you have opcode cache loaded, do not use Magento Compiler as it is useless and will just cause troubles on every code modification.

    To disable Magento Compiler in Backend you can navigate to System > Tools > Compilation and click on Flush cache button.

  • If shell/SSH console is not possible in your case, you still can disable Magento compiler via FTP or any FileManager. You just need to move includes/ directory out (renaming or deleting it) and create a new empty includes/ directory with empty includes/config.php file inside if you wish to enable Magento Compiler again some day, otherwise it will complain that can not find that directory.” class=”glossaryLink “>Disable Magento Compiler and clear compiler cache

 

Applying Magento patches via FTP/sFTP or FileManager / File Upload

To apply patches in this way we simply replace changed files. This way can not be used blindly if you or your developers have changed any core Magento files. Such changes should be re-applied to patched files, or you loose these changes.

Note: To the moment, the patch have no any dependencies and can be installed any time with any set of installed patches or without any patches.

The following file is changed by SUPEE-8167 is a small compatibility patch with new PayPal IPN server location. It is required to keep PayPal processing transactions past June 30, 2017.” class=”glossaryLink “>SUPEE-8167:

app/code/core/Mage/Paypal/Model/Ipn.php

 
To install the patch via FTP/File Upload

  • select patch bundle archive corresponding to your Magento version from the table below and unpack it
  • upload all files and folders to Magento root directory of your store, replacing all files

 

Magento version SUPEE-8167
1.9.3.2 SUPEE-8167-1.9.3.2
1.9.3.1 SUPEE-8167-1.9.3.1
1.9.3.0 SUPEE-8167-1.9.3.0
1.9.2.4 SUPEE-8167-1.9.2.4
1.9.2.3 SUPEE-8167-1.9.2.3
1.9.2.2 SUPEE-8167-1.9.2.2
1.9.2.1 SUPEE-8167-1.9.2.1
1.9.2.0 SUPEE-8167-1.9.2.0
1.9.1.1 SUPEE-8167-1.9.1.1
1.9.1.0 SUPEE-8167-1.9.1.0
1.9.0.1 SUPEE-8167-1.9.0.1
1.8.1.0 SUPEE-8167-1.8.1.0
1.7.0.2 SUPEE-8167-1.7.0.2
1.6.2.0 SUPEE-8167-1.6.2.0
1.6.1.0 SUPEE-8167-1.6.1.0
1.5.1.0 SUPEE-8167-1.5.1.0
1.5.0.1 SUPEE-8167-1.5.0.1
1.4.2.0 SUPEE-8167-1.4.2.0
1.4.1.1 SUPEE-8167-1.4.1.1

Downloads for other versions added to table on demand when we patch certain version via file upload for the first time.

 

Check if your cURL PHP library have TLS1.2

PayPal switching to TLS1.2 only on June 30, so it is important to verify that your Magento still will be able to connect to PayPal. Navigate to PayPal payment settings page in Backend and check if you have warnings as described in

 

Verification and flush of Magento PHP opcode cache

Flush Magento cache: Navigate in Magento backend to System > Cache Management and click on Flush cache button.

If you use PHP opcode caches (OPCache/APC/XCache/eAccelerator) make sure to flush it after patching (or restart webserver), otherwise code will continue to run from caches.

Test that your store is working.