0

we are using 1.9.0 version

i am trying to install the security patches through ssh

root@KidsDial:/var/www/html/# sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 14:
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 127: not found

PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 14:
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 127: not found

PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 25:
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: 0: not found

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

at the end, i am getting " Patch was applied/reverted successfully."

but above i am getting 3 lines displaying "not found", it means is patched updated succesfully..?...

when we checked here http://magento.com/security-patch, we are getting the sites is safe

2
  • 1
    What version of magento are you using?
    – rob3000
    Oct 6, 2015 at 23:54
  • we are using 1.9.0 version Oct 7, 2015 at 4:39

2 Answers 2

2

The best way is to install the patches through the command line. The best way is to follow the magento guide:

1 -Transfer the patch .sh file to your Magento installation root directory. For example, /var/www/html/magento.

2- Enter the following command as a user with sufficient privileges to write to Magento files (typically, the web server user or root): sh patch-file-name.sh

A message such as the following displays to confirm the patch installed successfully:

Patch was applied/reverted successfully.

source: http://devdocs.magento.com/guides/m1x/other/ht_install-patches.html

Update

I think you're using the wrong patch. It should be the V2 Version - PATCH_SUPEE-6285_CE_1.9.1.1_v2 and not the V1 version.

You may need to revert the changes that you have already done.

6
  • 1
    It would be good to write the answer in here as the link might change and then the answer would not apply anymore
    – Klettseb
    Oct 6, 2015 at 8:20
  • 1
    @Thomas good point. Just updated.
    – rob3000
    Oct 6, 2015 at 8:27
  • please check the updated question. i installed through ssh .at the end, i am getting " Patch was applied/reverted successfully." but above i am getting 3 lines displaying "not found", it means is patched updated succesfully? Oct 6, 2015 at 9:54
  • @BabyinMagento2 Just updated my answer
    – rob3000
    Oct 7, 2015 at 6:27
  • the only security patch i found with "v1" & "v2" version is "SUPEE - 6285 " we installed newer version "V2" only. but we are finding those 3 line errors when installing all patches. when we checked here magento.com/security-patch, we are getting the site is safe is this enough? Oct 7, 2015 at 6:41
2

You will need to install patches by following the process as Magento recommands through SSH commands as @rob3000 suggested.

The hunk error you are getting is because patch files has coded with the specific line numbers to be changed in your current Magento files, if patch don't find the code at defined line, it will show hunk error.

The solution of that, either you can get the same file from the Magento git of same version you are using and upload it to your server and then patch. Or you can follow this blog for the patch installation without ftp. http://magecomp.com/blog/how-to-install-magento-security-patches/

1
  • please check the updated question. i installed through ssh .at the end, i am getting " Patch was applied/reverted successfully." but above i am getting 3 lines displaying "not found", it means is patched updated succesfully? Oct 6, 2015 at 9:54

Your Answer

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

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