Magento2 : How to install patch CE-MAGETWO-67805.patch
-
09-10-2020 - |
Pergunta
Today CE-MAGETWO-67805.patch patch has released by Magento for resolve Image Resize Issue with Magento version 2.1.6
Image Resize Issue with Magento version 2.1.6
How can I install the patch? I can't find out any instruction for how to install patch. If any one have solution, please suggest to me.
Solução
I just applied the patch file.
If you have git installed on your environment just use the following copy the patch on you magento root folder.
Then use:
$ git apply MAGETWO-67805-2017-05-17-03-04-03.patch
There is no verbose first time but if you try second time you will see
error: patch failed: vendor/magento/module-catalog/Block/Product/ImageBlockBuilder.php:120
error: vendor/magento/module-catalog/Block/Product/ImageBlockBuilder.php: patch does not apply
Checked the mentioned files and they are up to date
Outras dicas
You can use http://www.thegeekstuff.com/2014/12/patch-command-examples to follow steps to apply the patch using patch file.
Thank you
Follow below steps :
- Download the patch file from magento official website.
- Upload it into the root folder of your magento store.
- Make one file with the name of
patch.php
in root directory, write following code in it.
<?php
print("<PRE>");
passthru("/bin/bash CE-MAGETWO-67805.patch");
print("</PRE>");
echo "Done";
?>
The patch file name should be CE-MAGETWO-67805.patch.
Run the file from the browser. You should receive success message screen once you run patch.php from the browser.
- Clear and flush the magento cache.
In this way you can install any magento patches easily. Hope it helps you !!