cancel
Showing results for 
Search instead for 
Did you mean: 

Hunk #1 FAILED at 40 (different line endings)

Highlighted

Hunk #1 FAILED at 40 (different line endings)

Issue:

I have faced this issue while installing the Magento security patch installation SUPEE-10975.

 

Error:

checking file app/code/core/Enterprise/GiftRegistry/Model/Attribute/Processor.php
Hunk #1 FAILED at 48 (different line endings).

 

Root cause:

While uploading the file window to linux PHP files have dos line-endings.

 

Solution:

We need to convert the files to unix format for all our Magento files.


Run the below line in the magento root directory.

Example:
cd /var/www/html
find . -type f -exec dos2unix {} \;