cancel
Showing results for 
Search instead for 
Did you mean: 

SUPEE-6788 error in Magento 1.9.0.1

SOLVED

SUPEE-6788 error in Magento 1.9.0.1

I have applied the patch SUPEE-6788 and I have the following errors:

 

PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 14: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 127: not found
PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 14: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 127: not found
PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 25: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

patching file .htaccess
Hunk #1 FAILED at 207.
1 out of 1 hunk FAILED -- saving rejects to file .htaccess.rej
patching file .htaccess.sample
patching file app/code/core/Mage/Admin/Model/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block/Collection.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable/Collection.php
patching file app/code/core/Mage/Admin/Model/Variable.php
patching file app/code/core/Mage/Admin/etc/config.xml
patching file app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.1.1-1.6.1.2.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit/Form.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Grid.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit/Form.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Grid.php
patching file app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php
patching file app/code/core/Mage/Adminhtml/controllers/Permissions/VariableController.php
patching file app/code/core/Mage/Adminhtml/etc/adminhtml.xml
patching file app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php
patching file app/code/core/Mage/Core/Controller/Request/Http.php
patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
patching file app/code/core/Mage/Core/Helper/UnserializeArray.php
patching file app/code/core/Mage/Core/Model/Email/Template/Filter.php
patching file app/code/core/Mage/Core/Model/Resource/Setup.php
patching file app/code/core/Mage/Core/etc/config.xml
patching file app/code/core/Mage/Core/etc/system.xml
patching file app/code/core/Mage/Customer/Block/Account/Changeforgotten.php
patching file app/code/core/Mage/Customer/Block/Account/Resetpassword.php
patching file app/code/core/Mage/Customer/controllers/AccountController.php
patching file app/code/core/Mage/Downloadable/Model/Product/Type.php
patching file app/code/core/Mage/Eav/Model/Resource/Attribute/Collection.php
patching file app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
patching file app/code/core/Mage/Sales/controllers/DownloadController.php
patching file app/code/core/Mage/SalesRule/Model/Resource/Coupon/Collection.php
patching file app/code/core/Zend/Soap/Server.php
patching file app/code/core/Zend/Xml/Exception.php
patching file app/code/core/Zend/Xml/Security.php
patching file app/code/core/Zend/XmlRpc/Request.php
patching file app/code/core/Zend/XmlRpc/Response.php
patching file app/design/adminhtml/default/default/layout/admin.xml
patching file app/design/frontend/base/default/layout/customer.xml
patching file app/design/frontend/base/default/template/customer/form/register.phtml
patching file app/design/frontend/base/default/template/customer/form/resetforgottenpassword.phtml
patching file app/design/frontend/base/default/template/page/js/cookie.phtml
patching file app/design/frontend/base/default/template/persistent/customer/form/register.phtml
can't find file to patch at input line 4202
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git app/design/frontend/default/iphone/layout/customer.xml app/design/frontend/default/iphone/layout/customer.xml
|index 1633e89..ebad42e 100644
|--- app/design/frontend/default/iphone/layout/customer.xml
|+++ app/design/frontend/default/iphone/layout/customer.xml
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 4227
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git app/design/frontend/default/modern/layout/customer.xml app/design/frontend/default/modern/layout/customer.xml
|index f1fd04f..95c6603 100644
|--- app/design/frontend/default/modern/layout/customer.xml
|+++ app/design/frontend/default/modern/layout/customer.xml
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file app/design/frontend/rwd/default/layout/customer.xml
patching file app/design/frontend/rwd/default/template/customer/form/resetforgottenpassword.phtml
patching file app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml
patching file cron.php
patching file errors/processor.php
Hunk #1 succeeded at 463 with fuzz 2.
patching file lib/Unserialize/Parser.php
patching file lib/Unserialize/Reader/Arr.php
patching file lib/Unserialize/Reader/ArrKey.php
patching file lib/Unserialize/Reader/ArrValue.php
patching file lib/Unserialize/Reader/Bool.php
patching file lib/Unserialize/Reader/Dbl.php
patching file lib/Unserialize/Reader/Int.php
patching file lib/Unserialize/Reader/Str.php
patching file lib/Varien/Data/Collection/Db.php

 

How can I solve it?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Re: SUPEE-6788 error in Magento 1.9.0.1

Just that you know how I did it:

- make the update of the htaccess manually,

and comment the lines in the patch which modify the htaccess file.

 

All the rest were updated by running the patch, also the patch is green in the: www.magereport.com.

 

Good luck

View solution in original post

6 REPLIES 6

Re: SUPEE-6788 error in Magento 1.9.0.1

I had the same problem, solved it by doing this. I had custom changes in .htaccess

 

I did this first on my development environment.

 

  1. Download version 1.9.0.1 from the release archive (https://www.magentocommerce.com/download) and unzip it.
  2. Rename your current .htaccess and .htaccess.sample to .htaccess.bak and .htaccess.sample.bak
  3. Copy .htaccess  and .htaccess.sample files that you unzipped in in step 1 to your root.
  4. Apply the path.

Then the patch was applied successfully and i copied my custom changes back in the .htaccess.

 

After that i ran into a other small problem. That some static blocks did not show up. I fixed this with this answer:

https://community.magento.com/t5/Security-Patches/Applying-SUPEE-6788-removes-static-block-on-home-p...

 

Go to system-permissions-blocks and add the block and set it to allowed. 

 

Goodluck!

 

Re: SUPEE-6788 error in Magento 1.9.0.1

i get error when entering at permitions to free the blocks.

Any Help?

Re: SUPEE-6788 error in Magento 1.9.0.1

Hi,

 

I've tried your solution but i get the same error:

I've made a backup of the htaccess, replace them with the original from the same version, but nothing changed.

Do you have any other idea?

 

root@wsm:/# sh PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh
PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 14: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 127: not found
PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 14: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 127: not found
PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 25: PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

patching file .htaccess
Hunk #1 FAILED at 207.
1 out of 1 hunk FAILED -- saving rejects to file .htaccess.rej
patching file .htaccess.sample
Hunk #1 FAILED at 176.
1 out of 1 hunk FAILED -- saving rejects to file .htaccess.sample.rej
patching file app/code/core/Mage/Admin/Model/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block/Collection.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable/Collection.php
patching file app/code/core/Mage/Admin/Model/Variable.php

.......................................

patching file app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml
patching file cron.php
patching file errors/processor.php
patching file lib/Unserialize/Parser.php
patching file lib/Unserialize/Reader/Arr.php
patching file lib/Unserialize/Reader/ArrKey.php
patching file lib/Unserialize/Reader/ArrValue.php
patching file lib/Unserialize/Reader/Bool.php
patching file lib/Unserialize/Reader/Dbl.php
patching file lib/Unserialize/Reader/Int.php
patching file lib/Unserialize/Reader/Str.php
patching file lib/Varien/Data/Collection/Db.php
root@wsm:/wsmdev#

Re: SUPEE-6788 error in Magento 1.9.0.1

Thank you NikkyLauwers,

I have tried your solution and I get the same error at first.

 

So I don't know how to solve it

Re: SUPEE-6788 error in Magento 1.9.0.1

Just that you know how I did it:

- make the update of the htaccess manually,

and comment the lines in the patch which modify the htaccess file.

 

All the rest were updated by running the patch, also the patch is green in the: www.magereport.com.

 

Good luck

Re: SUPEE-6788 error in Magento 1.9.0.1

Magento add good feature In 1.9.2.2.

after magento upgrade or install security patches you got error on system > permission

there is variables and blocks they added for restriction,

 

if you got error here regarding tables missing then dont worry, you can download permission_block and permission_variables tables default structure and data from here.

 

For more detail follow this article.

Magento Missing Blocks

Hope it will help full to some one else.

Ubed Arab