cancel
Showing results for 
Search instead for 
Did you mean: 

Reverting 8788v2 on CE 1.9.2.4

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Reverting 8788v2 on CE 1.9.2.4

I am having to revert Security Patch 8788 due to it not applying the patch properly. I have noticed that when I have tried the command 

 

 

sh PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh -R

PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 14: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 127: not found
PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 14: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 127: not found
PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 25: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

 

I have had a look further down for example and it says 

 

The next patch, when reversed, would delete the file app/code/core/Mage/Centinel/Model/Api/Client.php,
which does not exist!  Ignore -R? [n]

Now I wanted to replace the file with the one from Magento 1.9.2.4 but there is no file there. How would I get round this issue?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Reverting 8788v2 on CE 1.9.2.4

Managed to fix the solution by leaving the patch installed, and adding the files from this website: https://magentary.com/kb/install-supee-8788-without-ssh/

Add them and tested and Mage Report showed the site as patched. 

View solution in original post

5 REPLIES 5

Re: Reverting 8788v2 on CE 1.9.2.4

Hi @Yoma Limited,

 

Maybe you can grab a copy from here: https://github.com/OpenMage/magento-mirror/tree/magento-1.9/app/code/core/Mage/Centinel/Model/Api and then run the revert command.

Re: Reverting 8788v2 on CE 1.9.2.4

Thanks I will give it a try, do you know what this means: Unreversed patch detected! 

 

But I have added all of the files that it says where missing and I have ran the command 

 

sh PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh -R

But it is still saying that 

 

~/Desktop/git repository /furniture-plus/htdocs$ sh PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh -R
PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 14: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 127: not found
PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 14: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 127: not found
PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 25: PATCH_SUPEE-8788_CE_1.9.2.4_v2-2016-10-14-09-42-47.sh: 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/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
patching file app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php
patching file app/code/core/Mage/Adminhtml/Block/Media/Uploader.php
patching file app/code/core/Mage/Adminhtml/Block/Urlrewrite/Category/Tree.php
patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Serialized.php
patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.php
patching file app/code/core/Mage/Adminhtml/controllers/IndexController.php
patching file app/code/core/Mage/Adminhtml/controllers/Media/UploaderController.php
patching file app/code/core/Mage/Catalog/Helper/Image.php
patching file app/code/core/Mage/Catalog/etc/config.xml
patching file app/code/core/Mage/Catalog/etc/system.xml
patching file app/code/core/Mage/Centinel/Model/Api.php
patching file app/code/core/Mage/Centinel/Model/Api/Client.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Centinel/Model/Api/Client.php.rej
patching file app/code/core/Mage/Core/Block/Abstract.php
patching file app/code/core/Mage/Core/Helper/Url.php
patching file app/code/core/Mage/Core/Model/Encryption.php
patching file app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php
patching file app/code/core/Mage/Core/functions.php
patching file app/code/core/Mage/Customer/Block/Address/Book.php
patching file app/code/core/Mage/Customer/controllers/AddressController.php
patching file app/code/core/Mage/Dataflow/Model/Profile.php
patching file app/code/core/Mage/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Links.php
patching file app/code/core/Mage/Downloadable/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/Samples.php
patching file app/code/core/Mage/Downloadable/Helper/File.php
patching file app/code/core/Mage/Oauth/Model/Server.php
patching file app/code/core/Mage/Paygate/Model/Authorizenet.php                                                                                                 
patching file app/code/core/Mage/Payment/Block/Info/Checkmo.php
patching file app/code/core/Mage/Paypal/Model/Express/Checkout.php
patching file app/code/core/Mage/Paypal/Model/Resource/Payment/Transaction.php
patching file app/code/core/Mage/Sales/Model/Resource/Order/Payment.php
patching file app/code/core/Mage/Sales/Model/Resource/Order/Payment/Transaction.php
patching file app/code/core/Mage/Sales/Model/Resource/Quote/Payment.php
patching file app/code/core/Mage/Sales/Model/Resource/Recurring/Profile.php
patching file app/code/core/Mage/Uploader/Block/Abstract.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Block/Abstract.php.rej
patching file app/code/core/Mage/Uploader/Block/Multiple.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Block/Multiple.php.rej
patching file app/code/core/Mage/Uploader/Block/Single.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Block/Single.php.rej
patching file app/code/core/Mage/Uploader/Helper/Data.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Helper/Data.php.rej
patching file app/code/core/Mage/Uploader/Helper/File.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Helper/File.php.rej
patching file app/code/core/Mage/Uploader/Model/Config/Abstract.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Model/Config/Abstract.php.rej
patching file app/code/core/Mage/Uploader/Model/Config/Browsebutton.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Model/Config/Browsebutton.php.rej
patching file app/code/core/Mage/Uploader/Model/Config/Misc.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Model/Config/Misc.php.rej
patching file app/code/core/Mage/Uploader/Model/Config/Uploader.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/Model/Config/Uploader.php.rej
patching file app/code/core/Mage/Uploader/etc/config.xml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/etc/config.xml.rej
patching file app/code/core/Mage/Uploader/etc/jstranslator.xml
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Uploader/etc/jstranslator.xml.rej
patching file app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php
patching file app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php
patching file app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php
patching file app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
patching file app/code/core/Mage/Usa/etc/config.xml
patching file app/code/core/Mage/Usa/etc/system.xml
patching file app/code/core/Mage/Wishlist/Helper/Data.php
Hunk #1 succeeded at 277 (offset 3 lines).
patching file app/code/core/Mage/Wishlist/controllers/IndexController.php
Hunk #1 succeeded at 412 (offset -22 lines).
patching file app/code/core/Mage/XmlConnect/Block/Adminhtml/Mobile/Edit/Tab/Design.php
patching file app/code/core/Mage/XmlConnect/Block/Adminhtml/Mobile/Edit/Tab/Design/Images.php
patching file app/code/core/Mage/XmlConnect/controllers/Adminhtml/MobileController.php
patching file app/design/adminhtml/default/default/layout/cms.xml
patching file app/design/adminhtml/default/default/layout/main.xml
patching file app/design/adminhtml/default/default/layout/xmlconnect.xml
patching file app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml
patching file app/design/adminhtml/default/default/template/cms/browser/content/uploader.phtml
patching file app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable.phtml
patching file app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable/links.phtml
patching file app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable/samples.phtml
patching file app/design/adminhtml/default/default/template/media/uploader.phtml
patching file app/design/adminhtml/default/default/template/xmlconnect/edit/tab/design.phtml
patching file app/etc/modules/Mage_All.xml
patching file app/locale/en_US/Mage_Media.csv
patching file app/locale/en_US/Mage_Uploader.csv
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/locale/en_US/Mage_Uploader.csv.rej
patching file downloader/lib/Mage/HTTP/Client/Curl.php
Hunk #1 FAILED at 373.
1 out of 1 hunk FAILED -- saving rejects to file downloader/lib/Mage/HTTP/Client/Curl.php.rej
patching file js/lib/uploader/flow.min.js
patching file js/lib/uploader/fusty-flow-factory.js
patching file js/lib/uploader/fusty-flow.js
File js/lib/uploader/fusty-flow.js is not empty after patch, as expected
patching file js/mage/adminhtml/product.js
patching file js/mage/adminhtml/uploader/instance.js
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file js/mage/adminhtml/uploader/instance.js.rej
patching file lib/Unserialize/Parser.php
patching file lib/Unserialize/Reader/Arr.php
patching file lib/Unserialize/Reader/ArrValue.php
patching file lib/Unserialize/Reader/Null.php
Unreversed patch detected!  Ignore -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/Unserialize/Reader/Null.php.rej
patching file skin/adminhtml/default/default/boxes.css
patching file skin/adminhtml/default/default/media/flex.swf
patching file skin/adminhtml/default/default/media/uploader.swf
patching file skin/adminhtml/default/default/media/uploaderSingle.swf
patching file skin/adminhtml/default/default/xmlconnect/boxes.css

 

But I have looked in the applied patches and 

 

-e 2016-11-01 11:59:58 UTC | SUPEE-1533 | EE_1.12 | v1 | _ | n/a | SUPEE-1533_EE_1.12_v1.patch | REVERTED
patching file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.php

Shall I add this patch file back in?

 

Re: Reverting 8788v2 on CE 1.9.2.4

@Yoma Limited,

 

When a patch adds or delete files you'll need to try to put the files in the same place. The patch can't recreate a deleted file.

Most of your errors are related with that scenario.

 

I didn't have the same issues but I was near and I've copied the deleted files from previous versiones before revert the patch. It's a little bit annoying but isn't hard.

Re: Reverting 8788v2 on CE 1.9.2.4

Hello,

 

I have tried putting the deleted files back in the same place, using the same Magento version, but when I have added the files and then tried to revert the patch, it has not reverted successfully when I have tried to revert 8788 patch. 

 

I have downloaded the Magento version of the site, but I have noticed that some files that the patch has identified appears to be missing. I have found the 1.9 version on GitHub that seems to contain the correct files. But even when I have applied these its not worked.

 

I will have another go at applying the files again. Shall I just leave 1533 reverted?

 

I have noticed that change of Adminhtml block catalog product helper form gallery introduces the following 

 

/**
Type of uploader block*


@var string
*/
protected $_uploaderType = 'uploader/multiple';


this block does not exist within then file base Is there a way to check if all the file required for this patch are installed?

 

 

Thanks,

 

Re: Reverting 8788v2 on CE 1.9.2.4

Managed to fix the solution by leaving the patch installed, and adding the files from this website: https://magentary.com/kb/install-supee-8788-without-ssh/

Add them and tested and Mage Report showed the site as patched.