Trying to install the security patch SUPEE-9767 onto M1 EE v18.104.22.168 and i'm recieving the following error:
Hunk #1 FAILED at 225.
1 out of 1 hunk FAILED -- saving rejects to file app/design/frontend/enterprise/default/template/persistent/checkout/onepage/billing.phtml.rej
I've checked the line in file indicated in the error and here is the related block of code:
<div class="input-box"> (this is line 255)
<input type="password" name="billing[confirm_password]" title="<?php echo
$this->__('Confirm Password') ?>" id="billing:confirm_password"
class="input-text required-entry validate-cpassword" />
Any help would be appreciated.
Solved! Go to Solution.
Hunk Failed error was occurred at 225 line and you are looking at 255. On this template or rather on all form of different template, this patch is adding the form key to make form secure.
You may have to fix the issue manually. Open patch.sh file and look for the billing.html file patch you provided in your email. Make those change in the code manually. once you done changing the code, you need to remove the same updates from the patch file. Save patch file and re-run the patch. This should work.
Note: Try the recommendation test environment first to make sure what you are doing and it does not breaking anything.
What I did to resolve the problem:
Hope this helps someone else out there.