Applying patch throws an error, but no .rej file created
-
09-12-2020 - |
سؤال
When I applied today's patch (https://magento.com/security/patches/supee-7405), it thrown this error:
Hunk #1 FAILED at 227. 1 out of 1 hunk FAILED -- saving rejects to file lib/Varien/Io/File.php.rej
However there is no such file called File.php.rej
.
I am not sure what does this mean?
المحلول
The message is misleading. The patch scripts from Magento actually revert every change they made, as soon as they encounter a problem, that means:
- no files are patched
- no
.rej
files are created
The error you see, happens when a file is not exactly the same that the patch expects, this can mean one of these things:
- the file was changed manually (somebody touched the core!)
- you downloaded the patch for a different Magento version
- you did not apply all previous patches for your Magento version
لا تنتمي إلى magento.stackexchange