Magento – Security Patch SUPEE 8788 problem

magento-1.7patchesSecuritysupee-8788

Even I follow the procedure as mentioned in magento.

Apply SUPEE-8788

To apply patch SUPEE-8788:

  • Open /app/etc/applied.patches.list in a text editor.
  • Verify SUPEE-8788 is not applied. If it is, and it's version 1, see Replace SUPEE-8788 version 1 with version 2.
  • Verify whether or not patch SUPEE-1533 is applied. If it is, and your Magento version is earlier than EE 1.14.1.0 or CE 1.9.1.0, revert
    SUPEE-1533.
  • If your Magento version is earlier than EE 1.14.1.0 or CE 1.9.1.0, and SUPEE-3941 is not applied, apply SUPEE-3941.
  • Get version 2 of SUPEE-8788.
  • Apply version 2 of SUPEE-8788.

I followed same procedure to my project. I am using magento 1.7.0.2.

When installing Security Patch SUPEE 8788, I am getting the following issues

checking file app/code/core/Mage/Adminhtml/controllers/IndexController.php
Hunk #1 succeeded at 373 (offset -19 lines).

checking file app/code/core/Mage/Wishlist/controllers/IndexController.php
Hunk #1 FAILED at 48 (different line endings).
Hunk #2 FAILED at 152 (different line endings).
Hunk #3 FAILED at 162 (different line endings).
Hunk #4 FAILED at 192 (different line endings).
Hunk #5 FAILED at 212 (different line endings).
Hunk #6 FAILED at 337 (different line endings).
Hunk #7 FAILED at 393 (different line endings).
Hunk #8 FAILED at 412 (different line endings).
Hunk #9 FAILED at 428 (different line endings).
Hunk #10 FAILED at 447 (different line endings).
Hunk #11 FAILED at 536 (different line endings).
Hunk #12 FAILED at 632 (different line endings).
Hunk #13 FAILED at 641 (different line endings).
Hunk #14 FAILED at 663 (different line endings).
Hunk #15 FAILED at 719 (different line endings).
15 out of 15 hunks FAILED


checking file app/design/frontend/base/default/template/catalog/product/view.phtml
Hunk #1 FAILED at 40 (different line endings).
1 out of 1 hunk FAILED


checking file app/design/frontend/base/default/template/persistent/customer/form/login.phtml
Hunk #1 FAILED at 38 (different line endings).
1 out of 1 hunk FAILED

checking file app/design/frontend/base/default/template/wishlist/view.phtml
Hunk #1 FAILED at 52 (different line endings).
1 out of 1 hunk FAILED

checking file js/mage/adminhtml/uploader/instance.js
can't find file to patch at input line 7570
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git lib/Unserialize/Parser.php lib/Unserialize/Parser.php
|index 423902a..2c01684 100644
|--- lib/Unserialize/Parser.php
|+++ lib/Unserialize/Parser.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 7582
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git lib/Unserialize/Reader/Arr.php lib/Unserialize/Reader/Arr.php
|index caa979e..cd37804 100644
|--- lib/Unserialize/Reader/Arr.php
|+++ lib/Unserialize/Reader/Arr.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 7598
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git lib/Unserialize/Reader/ArrValue.php lib/Unserialize/Reader/ArrValue.php
|index d2a4937..c6c0221 100644
|--- lib/Unserialize/Reader/ArrValue.php
|+++ lib/Unserialize/Reader/ArrValue.php
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
checking file lib/Unserialize/Reader/Null.php
checking file skin/adminhtml/default/default/boxes.css
checking file skin/adminhtml/default/default/media/flex.swf
checking file skin/adminhtml/default/default/media/uploader.swf
checking file skin/adminhtml/default/default/media/uploaderSingle.swf

Best Answer

I'm using Magento 1.7.0.2:

I have resolved HUNK FAILED at 372 by applying SUPEE-3941

sh PATCH_SUPEE-3941_EE_1.14.0.1_v1-2015-02-10-08-32-02.sh

^^^ try applying it.

Battling right now: Hunk #1 FAILED at 40.


My current procedure is:

1) sh PATCH_SUPEE-1533_EE_1.12.x_v1-2015-02-10-08-19-16.sh -R

2) clear

3) sh PATCH_SUPEE-3941_EE_1.14.0.1_v1-2015-02-10-08-32-02.sh

4) clear


IF HUNK 1 at 40

5) Download vanilla 1.7.0.2 app/design/frontend/base/default/template/catalog/product/view.phtml and copy it to your /app/design/frontend/base/default/template/catalog/product/ folder



5) zip up PATCH_SUPEE-8788_CE_1.7.0.2_v2-2016-10-14-09-32-17.sh

6) upload

7) unzip

8) sh PATCH_SUPEE-8788_CE_1.7.0.2_v2-2016-10-14-09-32-17.sh

There is something else I'm missing with HUNK 1.

UPDATE:

I downloaded vanilla 1.7.0.2:

app/design/frontend/base/default/template/catalog/product/view.phtml

and applied it to my base folder.

Looks I messed with base folder when I was developing the theme.

After this the patch was applied successfully.

UPDATE:

I got a response from Magento Community Manager:

------------- RESPONSE -----------------

Community Manager sherrie Community Manager sherrie Posts: 746 Registered: ‎03-04-2015 Re: SUPEE-8788 (V2) -- SUPEE-3941 is it safe to apply to 1.7.0.2? Options 54m ago

Hi all, I talked to our product team and SUPEE-3941 should be fine to apply to lower versions. It exists only to address issues with Connect.

Community Manager, Magento Problem solved? Click Accept as Solution! Still stuck? Check out our documentation: http://magento.com/help/documentation

------------- RESPONSE -----------------

Related Topic