cancel
Showing results for 
Search instead for 
Did you mean: 

Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

I have installed the new Security patch (SUPEE-6285) and I know I have installed the correct version of the patch for my site. 

 

I have Magento ver. 1.8.1.0 installed and I downloaded PATCH_SUPE
E-6285_CE_1.8.1.0_v1-2015-07-07-09-06-30.sh

 

And it gave me this error:

 

Hunk #5 FAILED at 1115

1 out of 5 hunks FAILED

 

 

Is anyone else having this problem?

Any fixes?

18 REPLIES 18

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Hi @rammac1315, do you have the previous patches installed? If not, you will need to install them before SUPEE-6285. This is likely what is causing the problem. Alternatively, you can upgrade to 1.9.2 which includes SUPEE-5344, SUPEE-5994 and SUPEE-6285.

 

There's a bit more detail here: http://community.magento.com/t5/News-Announcements/Critical-new-Magento-security-patch/m-p/10137#M15

--

Developer Relations, Adobe Experience Cloud
Problem solved? Click Accept as Solution!
Still stuck? Check out our documentation: https://magento.com/resources/technical

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Thanks for getting back to me.

 

Yes I have installed the previous patches. I have tested that they are installed and they all are so I don't know why I am still getting this Hunk 5 failure.

 

I am leery about upgrading my magento site to the newest version because I have made quite a few modifications to files in the app and skin folders in my current version and I don't want to cause problems with my site.

 

bash PATCH_SUPEE-6285_CE_1.8.1.0_v1-2015-07-07-09-06-30.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

patching file app/Mage.php
Hunk #1 succeeded at 813 (offset -1 lines).
patching file app/code/community/Phoenix/Moneybookers/controllers/Moneybooker
sController.php
patching file app/code/core/Mage/Adminhtml/Controller/Action.php
patching file app/code/core/Mage/Adminhtml/controllers/AjaxController.php
patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Category/Widge
tController.php
patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/Datafe
edsController.php
patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/Review
Controller.phppatching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/Widget
Controller.php
patching file app/code/core/Mage/Adminhtml/controllers/Cms/Block/WidgetContro
ller.php
patching file app/code/core/Mage/Adminhtml/controllers/Cms/Page/WidgetControl
ler.php
patching file app/code/core/Mage/Adminhtml/controllers/Cms/PageController.php
patching file app/code/core/Mage/Adminhtml/controllers/Cms/WysiwygController.
php
patching file app/code/core/Mage/Adminhtml/controllers/Customer/System/Config
/ValidatevatController.php
patching file app/code/core/Mage/Adminhtml/controllers/JsonController.php
patching file app/code/core/Mage/Adminhtml/controllers/NotificationController
.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/CustomerControl
ler.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/ProductControll
er.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/ReviewControlle
r.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/SalesController
.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/ShopcartController.php
patching file app/code/core/Mage/Adminhtml/controllers/Report/TagController.p
hp
patching file app/code/core/Mage/Adminhtml/controllers/ReportController.php
patching file app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.
php
patching file app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.ph
p
patching file app/code/core/Mage/Adminhtml/controllers/Sales/Billing/Agreemen
tController.php
patching file app/code/core/Mage/Adminhtml/controllers/Sales/Order/View/Giftm
essageController.php
patching file app/code/core/Mage/Adminhtml/controllers/Sales/Recurring/Profil
eController.php
patching file app/code/core/Mage/Adminhtml/controllers/Sales/TransactionsCont
roller.php
patching file app/code/core/Mage/Adminhtml/controllers/System/Config/System/S
torageController.php
patching file app/code/core/Mage/Adminhtml/controllers/TagController.php
Hunk #1 succeeded at 346 (offset 1 line).
patching file app/code/core/Mage/Adminhtml/controllers/Tax/RateController.php
Hunk #1 succeeded at 455 (offset -11 lines).
can't find file to patch at input line 571
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/controllers/TaxController.php app/co
de/core/Mage/Adminhtml/controllers/TaxController.php
|index 285a69b..214cda1 100644
|--- app/code/core/Mage/Adminhtml/controllers/TaxController.php
|+++ app/code/core/Mage/Adminhtml/controllers/TaxController.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file app/code/core/Mage/Api2/controllers/Adminhtml/Api2/AttributeCon
troller.php
patching file app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/Selectio
nController.php
patching file app/code/core/Mage/Captcha/controllers/Adminhtml/RefreshControl
ler.php
patching file app/code/core/Mage/Centinel/controllers/Adminhtml/Centinel/Inde
xController.php
patching file app/code/core/Mage/Checkout/controllers/MultishippingController
.php
patching file app/code/core/Mage/Connect/controllers/Adminhtml/Extension/Loca
lController.php
patching file app/code/core/Mage/ImportExport/Model/Abstract.php
patching file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeC
ontroller.phppatching file app/code/core/Mage/Paygate/controllers/Adminhtml/Paygate/Author
izenet/PaymentController.php
patching file app/code/core/Mage/Paypal/controllers/Adminhtml/Paypal/ReportsC
ontroller.php
patching file app/code/core/Mage/Rss/controllers/CatalogController.php
patching file app/code/core/Mage/Rss/controllers/OrderController.php
Hunk #1 succeeded at 77 (offset 2 lines).
patching file app/code/core/Mage/Widget/Block/Adminhtml/Widget/Chooser.php
patching file app/code/core/Mage/Widget/controllers/Adminhtml/WidgetControlle
r.php
patching file app/design/frontend/base/default/template/checkout/cart.phtml
Hunk #1 succeeded at 97 (offset -1 lines).
patching file app/design/frontend/base/default/template/checkout/cart/noItems
.phtml
patching file app/design/frontend/base/default/template/checkout/onepage/fail
ure.phtml
patching file app/design/frontend/base/default/template/rss/order/details.pht
ml
patching file app/design/frontend/base/default/template/wishlist/email/rss.ph
tml
patching file app/design/frontend/default/modern/template/checkout/cart.phtml
patching file downloader/Maged/.htaccess
patching file downloader/Maged/Controller.php
Hunk #4 succeeded at 451 (offset -5 lines).
Hunk #5 FAILED at 1115.

1 out of 5 hunks FAILED -- saving rejects to file downloader/Maged/Controller
.php.rej
patching file downloader/Maged/Model/Session.php
Hunk #2 succeeded at 228 with fuzz 2 (offset -13 lines).
patching file downloader/lib/.htaccess
patching file downloader/template/connect/packages.phtml
Hunk #3 succeeded at 176 (offset -1 lines).
patching file downloader/template/connect/packages_prepare.phtml
patching file downloader/template/login.phtml
patching file downloader/template/settings.phtml
patching file errors/processor.php

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

I've got the same error with

 

|diff --git app/design/frontend/default/modern/template/checkout/cart.phtml app/design/frontend/default/modern/template/checkout/cart.phtml
|index 982ad5a..2bf6b37 100644
|--- app/design/frontend/default/modern/template/checkout/cart.phtml
|+++ app/design/frontend/default/modern/template/checkout/cart.phtml

 

Actually I had removed the "modern" folder the other day. So I uploaded the modern folder back then it works.

Probably you can upload app/code/core/Mage/Adminhtml/controllers and try?

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Hello @rammac1315

 

As a part of our commitment to secure every Magento store with latest security patches, we are helping to each store owner to apply patches for FREE, 

We are also working to make this patch installation easier for Magento developers and store owners. For more update, keep an eye on our blog,

http://magecomp.com/blog

 

 

 

SECURITY DISCLAIMER: The above website contains Magento Security Patch files which are self-hosted by the user and as such unsafe. Magento Forum advise all users to only download patch files from the official Magento Downloads page. 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

This is happening becuase the file being patched doesn't match the original file that the patch is expecting.

 

Line 1115 is patching 'downloader/Maged/Controller.php'.

 

Check this file matches the clean file from 1.8.1.0.

 

Resolve that issue and the patch should work fine.

 

Cheers,

 

Ian

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Hi,

 

same problem here.

Magento 1.7.0.2 with all previous patches applied.

 

Any ideas ?

 

 

sh PATCH_SUPEE-6285_CE_1.7.0.2_v1-2015-07-07-09-09-08.sh

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

ERROR: Patch can't be applied/reverted successfully.

 

patching file app/Mage.php

Hunk #1 FAILED at 813.

1 out of 1 hunk FAILED -- saving rejects to file app/Mage.php.rej patching file app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php

patching file app/code/core/Mage/Adminhtml/Controller/Action.php

patching file app/code/core/Mage/Adminhtml/controllers/AjaxController.php

patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Category/WidgetController.php

patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/DatafeedsController.php

patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php

patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/WidgetController.php

patching file app/code/core/Mage/Adminhtml/controllers/Cms/Block/WidgetController.php

patching file app/code/core/Mage/Adminhtml/controllers/Cms/Page/WidgetController.php

patching file app/code/core/Mage/Adminhtml/controllers/Cms/PageController.php

patching file app/code/core/Mage/Adminhtml/controllers/Cms/WysiwygController.php

patching file app/code/core/Mage/Adminhtml/controllers/Customer/System/Config/ValidatevatController.php

patching file app/code/core/Mage/Adminhtml/controllers/JsonController.php

patching file app/code/core/Mage/Adminhtml/controllers/NotificationController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/CustomerController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/ProductController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/ReviewController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/SalesController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/ShopcartController.php

patching file app/code/core/Mage/Adminhtml/controllers/Report/TagController.php

patching file app/code/core/Mage/Adminhtml/controllers/ReportController.php

patching file app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.php

patching file app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.php

patching file app/code/core/Mage/Adminhtml/controllers/Sales/Billing/AgreementController.php

patching file app/code/core/Mage/Adminhtml/controllers/Sales/Order/View/GiftmessageController.php

patching file app/code/core/Mage/Adminhtml/controllers/Sales/Recurring/ProfileController.php

patching file app/code/core/Mage/Adminhtml/controllers/Sales/TransactionsController.php

patching file app/code/core/Mage/Adminhtml/controllers/System/Config/System/StorageController.php

patching file app/code/core/Mage/Adminhtml/controllers/TagController.php

patching file app/code/core/Mage/Adminhtml/controllers/Tax/RateController.php

patching file app/code/core/Mage/Api2/controllers/Adminhtml/Api2/AttributeController.php

patching file app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php

patching file app/code/core/Mage/Captcha/controllers/Adminhtml/RefreshController.php

patching file app/code/core/Mage/Centinel/controllers/Adminhtml/Centinel/IndexController.php

patching file app/code/core/Mage/Checkout/controllers/MultishippingController.php

patching file app/code/core/Mage/Connect/controllers/Adminhtml/Extension/LocalController.php

patching file app/code/core/Mage/Core/Block/Abstract.php

patching file app/code/core/Mage/ImportExport/Model/Abstract.php

patching file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php

patching file app/code/core/Mage/Paygate/controllers/Adminhtml/Paygate/Authorizenet/PaymentController.php

patching file app/code/core/Mage/Paypal/controllers/Adminhtml/Paypal/ReportsController.php

patching file app/code/core/Mage/Rss/controllers/CatalogController.php

patching file app/code/core/Mage/Rss/controllers/OrderController.php

patching file app/code/core/Mage/Widget/Block/Adminhtml/Widget/Chooser.php

patching file app/code/core/Mage/Widget/controllers/Adminhtml/WidgetController.php

patching file app/design/frontend/base/default/template/checkout/cart.phtml

patching file app/design/frontend/base/default/template/checkout/cart/noItems.phtml

patching file app/design/frontend/base/default/template/checkout/onepage/failure.phtml

patching file app/design/frontend/base/default/template/rss/order/details.phtml

patching file app/design/frontend/base/default/template/wishlist/email/rss.phtml

patching file app/design/frontend/default/modern/template/checkout/cart.phtml

Hunk #1 succeeded at 95 with fuzz 2 (offset -2 lines).

The next patch would create the file downloader/Maged/.htaccess, which already exists! Assume -R? [n] Apply anyway? [n] Skipping patch.

1 out of 1 hunk ignored

patching file downloader/lib/.htaccess

patching file errors/processor.php

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Hunk #1 succeeded at 95 with fuzz 2 (offset -2 lines).

The next patch would create the file downloader/Maged/.htaccess, which already exists!

 

 

------------
MagenX - Magento and Server optimization

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Thanks for the quick answer.

 

should I delete (or rename) this file and retry the patch ?

Re: Security Patch (SUPEE-6285) Error - Hunk #5 FAILED at 1115

Had the same error:

I looked in the connect Manager and realised, that Version 1.8.0 was installed. After downloading the SUPEE-Patch for that specific version, everything went just fine.

Perhaps it is worth looking for the correct version.

 

Greetings

Detlev