0

we installed magento security patches before one month

after that we did lot of chnages to our site.

now some features are not working that was working before one month.

we are not sure whether security patches is the reason or not.

is there any way to remove the security patches .

1
  • 2
    after that we did lot of changes to our site. ... the end of story...
    – MagenX
    Commented Oct 21, 2015 at 9:17

3 Answers 3

13

Open a patch file in a text editor and you'll find it's nothing more than

  • Which file
  • What to add on which line (indicated by + symbols)
  • What to remove on which line (indicated by - symbols)

So you could do it manually. But the kind folks of Magento also included a Revert option in the patch files. If you check the usage menu you'll find it.

Usage: sh $BASE_NAME [--help] [-R|--revert] [--list]
Apply embedded patch.

-R, --revert    Revert previously applied embedded patch
--list          Show list of applied patches
--help          Show this help message

Now before you start reverting that stuff

Don't.

The patches are there for a reason, generally a security issue. So instead of removing them fix whatever is not working to work together WITH the security patch.

And honestly. If a security patch broke a functionality it's probably because the functionality is doing things it shouldn't be doing that way in the first place

4
  • you are right, i just wanted to know that is the reason or not, but that is not the reason..... Commented Oct 21, 2015 at 7:39
  • @sander : could you pls help me to find out :: what is the meaning of the error patching file app/design/install/default/default/template/install/create_admin.phtml patching file app/locale/en_US/Mage_Adminhtml.csv can't find file to patch at input line 720 Perhaps you used the wrong -p or --strip option? how can i solve patch error snag.gy/hWXebp.jpg
    – zus
    Commented Dec 7, 2017 at 6:35
  • @zus it's actually telling you what's wrong, can't find the file. Did you check if the file is there? Commented Dec 8, 2017 at 7:26
  • @SanderMangel could you pls help me magento.stackexchange.com/q/215022/57334
    – zus
    Commented Feb 28, 2018 at 6:24
9

If you applied the patch via shellscript (.sh) file via SSH, you can revert the patch (as Sander already explained in his answer here). If you applied it manually/via FTP, you have to go through the list of files mentioned in the patch and go through the files manually.

Please keep in mind: No feature can be as important to remove any security patches from your shop.

You should only disable/rollback the changes for testing/debugging purposes, fix it, apply the patch and update your feature changes. I hope you have a development system set up somewhere where you can test those changes and don't work on the live system.

5

Best practice: Just revert the commit of the security update in your version control (e.g. git). If you say "we don't use version control" you should should fix that issue first :)

I would prefer to keep the security patch in your system and you should try to determine why your extensions aren't working anymore. In the most cases you have missed some important things which haven't been that important before the update.

Summary:

  • Use version control
  • Apply all patches to your installation
  • No need to remove a security patch (since there is no reason)
  • Don't be lazy and fix your extensions to work with the current (and most secure) environment
  • Never change the core...
1
  • sure @Matthias , i will follow it... Commented Oct 22, 2015 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.