Question

I have applied all patches and also updated my .htaccess.sample to a stock magento file but the patch is not going successfully. I got this code.

            Checking if patch can be applied/reverted successfully...
            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/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
            patching file app/design/frontend/default/iphone/layout/customer.xml
            patching file app/design/frontend/default/modern/layout/customer.xml
            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
            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
            patching file lib/Zend/Xml/Security.php
            patch unexpectedly ends in middle of line
            Hunk #4 FAILED at 153.
            1 out of 4 hunks FAILED -- saving rejects to file lib/Zend/Xml/Security.php.rej
Was it helpful?

Solution

sent you an email with the .htaccess and sample file. As for the rest:

I'm not sure about those other files (lib/Unserialize) you get the error on now.. perhaps try removing them since the patch is attempting to create them. For lib/Varien/Data/Collection/Db.php back it up and try to replace with stock file since it appears to be edited.

OTHER TIPS

Make a backup of .htaccess and lib/Zend/Xml/Security.php and change these files with originals that you can find in the release archive (https://www.magentocommerce.com/download), choosing your magento version. Apply again the patch :-)

Check that you have applied all previous security patches as some of them change the same files and the newer patches expect that version.

Hi @serman I did as you said now I have this error message. I checked magereport but it still says patch not installed.

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

            patching file .htaccess
            Reversed (or previously applied) patch detected!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored -- saving rejects to file .htaccess.rej
            patching file .htaccess.sample
            Reversed (or previously applied) patch detected!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored -- 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/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/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
            patching file app/design/frontend/default/iphone/layout/customer.xml
            patching file app/design/frontend/default/modern/layout/customer.xml
            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
            The next patch would create the file lib/Unserialize/Parser.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/Arr.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/ArrKey.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/ArrValue.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/Bool.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/Dbl.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/Int.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            The next patch would create the file lib/Unserialize/Reader/Str.php,
            which already exists!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            1 out of 1 hunk ignored
            patching file lib/Varien/Data/Collection/Db.php
            Reversed (or previously applied) patch detected!  Assume -R? [n]
            Apply anyway? [n]
            Skipping patch.
            2 out of 2 hunks ignored -- saving rejects to file lib/Varien/Data/Collection/Db.php.rej
            patching file lib/Zend/Xml/Security.php
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top