Skip to main content
13 of 14
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/

Applying patches manually with no SSH access

You have a good point here. The patches are supplied as .sh files and there is no solution offered by Magento for FTP only websites.

I suggest one would copy his website's code to a local environment through FTP (you would probably have that already). Then apply the patch by running the .sh file.

Now you need to find out which files you need to upload again. If you would open the .sh patch file, then you will see it consist of two sections:

  1. Bash shell code to apply the patch. This code is general for every patch.
  2. The actual patch in the form of a unified patch format. This indicates only the lines in files that were changed (including some context lines). This starts below the line __PATCHFILE_FOLLOWS__

From the second section you could read which files were/are affected by the patch. You need to upload these files again to your FTP or... you could just upload everything.

Applying manually without bash/shell

  1. If you can't run .sh files (in Windows), then you could extract the second section of the patch (the unified patch) and apply it manually with a patching tool (or for example through PHPStorm).
  2. The website Magentary.com provides ZIP files for each Magento version containing the patched files only.

Patches in current & future releases?

The patches that are released right now apply to all versions that were already released. Of course, might Magento release a new version (major or minor). Then they will contain all security patches as Magento will also apply the patches to their development code base naturally (these patches even originate from that code base ;)).

UPDATE (Apr 29):
Recently Magento EE 1.14.2 was released and I checked if the changes in patch SUPEE-5344/SUPEE-5345 were in it and they are...

UPDATE (May 4):
Magento has patched CE 1.9.1 as new patch version CE 1.9.1.1 and made it available to download on their download page.

UPDATE (May 15):
Magento has release patch SUPEE-5994. This is not in the latest EE 1.14.2 version and not in the latest CE 1.9.1.1 patch version. It will be in the CE 1.9.2 version, released somewhere in June/July.

7ochem
  • 7.6k
  • 14
  • 52
  • 80