Showing results for 
Search instead for 
Did you mean: 

Magento - Applying SUPEE-7405 Failing for ver


Magento - Applying SUPEE-7405 Failing for ver

Attempting to apply the patch SUPEE-7405 to the a magento site with version and received the following errors:


Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

patching file app/code/core/Mage/Admin/Model/Mysql4/User.php
Hunk #2 succeeded at 295 (offset 11 lines).
patching file app/code/core/Mage/Admin/Model/Observer.php
patching file app/code/core/Mage/Admin/Model/Redirectpolicy.php
patching file app/code/core/Mage/Admin/Model/Session.php
Hunk #2 succeeded at 114 with fuzz 1.
Hunk #3 succeeded at 125 (offset 1 line).
patching file app/code/core/Mage/Admin/Model/User.php
patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php
patching file app/code/core/Mage/Adminhtml/Block/Widget/Grid.php
patching file app/code/core/Mage/Adminhtml/Helper/Catalog/Product/Edit/Action/Attribute.php
patching file app/code/core/Mage/Adminhtml/Helper/Sales.php
patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/File.php
Hunk #2 succeeded at 60 with fuzz 1 (offset -3 lines).
Hunk #3 succeeded at 184 (offset -5 lines).
patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image.php
patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image/Favicon.php
patching file app/code/core/Mage/Adminhtml/controllers/IndexController.php
Hunk #1 FAILED at 178.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Adminhtml/controllers/IndexController.php.rej
patching file app/code/core/Mage/Authorizenet/Helper/Admin.php
patching file app/code/core/Mage/Authorizenet/Helper/Data.php
patching file app/code/core/Mage/Authorizenet/controllers/Adminhtml/Authorizenet/Directpost/PaymentController.php
patching file app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php
patching file app/code/core/Mage/Catalog/Model/Category/Attribute/Backend/Image.php
Hunk #1 succeeded at 57 with fuzz 2.
patching file app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Attribute/Backend/Image.php
Hunk #1 FAILED at 50.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Attribute/Backend/Image.php.rej
patching file app/code/core/Mage/CatalogInventory/Helper/Minsaleqty.php
patching file app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php
patching file app/code/core/Mage/Checkout/controllers/CartController.php
Hunk #2 succeeded at 404 (offset 3 lines).
patching file app/code/core/Mage/Checkout/controllers/OnepageController.php
patching file app/code/core/Mage/Core/Controller/Response/Http.php
patching file app/code/core/Mage/Core/Helper/Data.php
Hunk #1 succeeded at 788 with fuzz 2 (offset 59 lines).
patching file app/code/core/Mage/Core/Model/App.php
Hunk #1 succeeded at 1207 (offset 7 lines).
patching file app/code/core/Mage/Core/Model/Config.php
patching file app/code/core/Mage/Core/Model/Email/Template/Filter.php
patching file app/code/core/Mage/Core/Model/Factory.php
patching file app/code/core/Mage/Core/Model/File/Validator/Image.php
patching file app/code/core/Mage/Core/Model/Session.php
patching file app/code/core/Mage/Customer/controllers/AccountController.php
Hunk #1 FAILED at 65.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Customer/controllers/AccountController.php.rej
patching file app/code/core/Mage/Dataflow/Model/Convert/Parser/Csv.php
patching file app/code/core/Mage/Downloadable/controllers/CustomerController.php
patching file app/code/core/Mage/ImportExport/Model/Export/Adapter/Abstract.php
patching file app/code/core/Mage/ImportExport/Model/Export/Adapter/Csv.php
patching file app/code/core/Mage/ImportExport/Model/Import/Entity/Abstract.php
patching file app/code/core/Mage/ImportExport/etc/config.xml
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/ImportExport/etc/config.xml.rej
patching file app/code/core/Mage/ImportExport/etc/system.xml
patching file app/code/core/Mage/Newsletter/Model/Observer.php
patching file app/code/core/Mage/Newsletter/Model/Queue.php
patching file app/code/core/Mage/Page/etc/system.xml
patching file app/code/core/Mage/Paypal/controllers/PayflowController.php
patching file app/code/core/Mage/Paypal/etc/config.xml
patching file app/code/core/Mage/Review/controllers/ProductController.php
patching file app/code/core/Mage/Rss/Block/Catalog/Salesrule.php
patching file app/code/core/Mage/Sales/Model/Quote/Address.php
Hunk #1 succeeded at 906 (offset 15 lines).
patching file app/code/core/Mage/Sales/Model/Quote/Item.php
patching file app/code/core/Zend/Xml/Security.php
patching file app/design/adminhtml/default/default/template/authorizenet/directpost/iframe.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/creditmemo/create/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/creditmemo/view/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/invoice/create/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/invoice/view/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/order/view/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/shipment/create/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/bundle/sales/shipment/view/items/renderer.phtml
patching file app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/file.phtml
patching file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/creditmemo/name.phtml
patching file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/invoice/name.phtml
patching file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/name.phtml
patching file app/design/adminhtml/default/default/template/sales/items/column/name.phtml
patching file app/design/adminhtml/default/default/template/sales/items/renderer/default.phtml
patching file app/design/adminhtml/default/default/template/sales/order/totals/discount.phtml
patching file app/design/adminhtml/default/default/template/sales/order/view/info.phtml
patching file app/design/frontend/base/default/template/catalog/product/view/options/type/file.phtml
patching file app/design/frontend/base/default/template/rss/order/details.phtml
patching file lib/Varien/File/Uploader.php
Hunk #1 succeeded at 125 (offset 3 lines).
Hunk #2 FAILED at 203.
Hunk #3 succeeded at 251 with fuzz 2 (offset 12 lines).
Hunk #4 FAILED at 335.
Hunk #5 succeeded at 425 with fuzz 2 (offset 11 lines).
Hunk #6 succeeded at 516 (offset 26 lines).
2 out of 6 hunks FAILED -- saving rejects to file lib/Varien/File/Uploader.php.rej
patching file lib/Varien/Io/File.php

Can anyone assist please?


Accepted Solutions

Re: Magento - Applying SUPEE-7405 Failing for ver

Turned out I was attempting to install the version, hence the mismatch. Sorry about that Smiley Sad

View solution in original post


Re: Magento - Applying SUPEE-7405 Failing for ver

Please confirm that you have patches all the previous releases by checking your app/etc/applied.patches.list

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: Magento - Applying SUPEE-7405 Failing for ver

Thanks Brent, core files have been replaced with a fresh install of and following patches have been applied afterwards:1533, 5390, 5994 , 6285, 6482 , 6788. Am I missing something?

Re: Magento - Applying SUPEE-7405 Failing for ver

Brent, from over on magento.stackexchange, this is one of those Magento from Hell situations. From over there, this is what was already done.


 > Core files have been replaced with a fresh install of and following patches have been applied afterwards:1533, 5390 => (Internally renumbered 5344), 5994 , 6285, 6482 , 6788. Am I missing something?


thery_doghouse reports it fails when the 7405 patch is applied to what has essentially been returned to original core and sequentially, successfully patched until it fails on the last patch. 


At this point for me to be of any help, I'd have to take my Linux hacking experience to tear into the files that won't patch, find out why on earth they don't match what the patch file is expecting. If I have time this weekend, I'd consider untaring the installer archive onto one of my Linux VMs, patch it up and see if I get the same failure on the last SUPEE patch.


Any suggestions?

PS: Bringing back nightmares of the time before Redhat and Debian created their package management systems so we didn't have to bust our foreheads beating them on the desk for the very same archaic reason because the bug patch wouldn't apply on that one server for lack of performing whatever Satanic ritual that was needed to make the thing take. I've been doing this too long.



Re: Magento - Applying SUPEE-7405 Failing for ver

Thanks for your interest . Just to give you an idea, here is some information on the first error:


Below snippet from the patch file:


diff --git app/code/core/Mage/Adminhtml/controllers/IndexController.php app/code/core/Mage/Adminhtml/controllers/IndexController.php
index 7472170..6821794 100644
--- app/code/core/Mage/Adminhtml/controllers/IndexController.php
+++ app/code/core/Mage/Adminhtml/controllers/IndexController.php
@@ -178,36 +178,43 @@ class Mage_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action


public function forgotpasswordAction()



And then the actual IndexController.php file at line 178



public function deniedIframeAction()



The forgotpasswordAction() function only starts at line 190, hence lines don't match between file and patch....


Re: Magento - Applying SUPEE-7405 Failing for ver

Turned out I was attempting to install the version, hence the mismatch. Sorry about that Smiley Sad

Re: Magento - Applying SUPEE-7405 Failing for ver

Yeah, I downloaded the archive and all the patches and can see those ones and zeros switching around in the dropdown menu. I have to pay attention as my lysdexia causes number transpositions when I start getting tired and it is a real problem.


Patch chain fwiw is as follows (note that ugly date/time stamp is removed from file names)

-rw-r--r--  1 magento magento   6358 Feb  3 20:59
-rw-r--r--  1 magento magento   8466 Feb  3 20:59
-rw-r--r--  1 magento magento  42792 Feb  3 21:01
-rw-r--r--  1 magento magento  47048 Feb  3 21:01
-rw-r--r--  1 magento magento   6778 Feb  3 21:02
-rw-r--r--  1 magento magento 171724 Feb  3 21:02
-rw-r--r--  1 magento magento 107316 Feb  3 21:03

And so if you go by the downloaded file names, confusion still reigns. Everything applied without issue so as long as you get the right ones, it all works.