cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot apply patch 5994 to CE v1.8.0.0

Cannot apply patch 5994 to CE v1.8.0.0

Hello,

 

I applied previous patches 5344, 1533, etc without problems before to my dev environment which is running CE 1.8.0.0. But when I try to apply the latest (May 14th 2015) patch: sh PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh

 

I keep getting the following error:

PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 127: not found
PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 127: not found
PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 0: not found
Checking if patch can be applied/reverted successfully...
patch: **** misordered hunks! output would be garbled
ERROR: Patch can't be applied/reverted successfully.

 

I googled about "magento patch 5994 misordered hunks" and found only one relevant result but no solution. Most mention about patching with "patch" command, but it's not applicable here because I'm using the "sh" command to patch.

 

Someone also brought up the error may have been caused by changes done to core files.

 

So I compared the my dev environment with a stock CE v1.8.0.0 and the only core file differences I found that the 5994 patch will edit are the following two files:

app/code/core/Mage/Core/Controller/Varien/Router/Standard.php

downloader/Maged/Model/Connect.php

Which are most likely modified by a previous patch.

 

I tried backing up these two files up and load in the stock ones but running the sh patching command brings up the same result as above.

 

What does all this mean and how can I get it resolved so that I can apply this critical patch?

 

Thanks in advance for any help!

2 REPLIES 2

Re: Cannot apply patch 5994 to CE v1.8.0.0

Hi,

 

Please checkout our Github with files where patch applied and compare with your files. This way you can find difference and see if patch was applied correctly.

 

Thanks

Re: Cannot apply patch 5994 to CE v1.8.0.0

Hello I can't patch 5994 to Magento Version 1.9.0.1

 

Please help, I'm totally new with Magento, and this is my first patching Smiley Happy

 

I downloaded file from https://www.magentocommerce.com/download

and added it into root and this is output:

 

# sh PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh

PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 24: 127: not found

PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 24: 127: not found

PATCH_SUPEE-5994_CE_1.6.0.0_v1-2015-05-15-04-34-46.sh: 29: 0: not found

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

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

 

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

patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php

patching file app/code/core/Mage/Core/Controller/Varien/Router/Standard.php

patching file app/code/core/Mage/Customer/Model/Customer.php

patching file app/code/core/Mage/Dataflow/Model/Convert/Parser/Csv.php

patching file app/code/core/Mage/ImportExport/Model/Export/Adapter/Csv.php

patching file app/code/core/Mage/Install/Controller/Router/Install.php

patching file app/code/core/Mage/Install/etc/config.xml

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

patching file downloader/Maged/Model/Connect.php

Hunk #1 FAILED at 100.

1 out of 1 hunk FAILED -- saving rejects to file downloader/Maged/Model/Connect.php.rej

patching file downloader/Maged/View.php

Hunk #1 FAILED at 162.

1 out of 1 hunk FAILED -- saving rejects to file downloader/Maged/View.php.rej

patching file downloader/template/connect/packages_prepare.phtml

Hunk #1 FAILED at 33.

1 out of 1 hunk FAILED -- saving rejects to file downloader/template/connect/packages_prepare.phtml.rej

patching file downloader/template/messages.phtml

Hunk #1 FAILED at 30.

1 out of 1 hunk FAILED -- saving rejects to file downloader/template/messages.phtml.rej

patching file get.php

patching file lib/PEAR/PEAR/PEAR.php

patching file lib/PEAR/PEAR/PEAR5.php

patching file lib/Varien/Io/File.php