Magento PATCH_SUPEE-6285_CE_1.9.1.1_v2-2015-07-08-08-07-43.sh失败

时间:2015-10-31 12:49:46

标签: php magento

我在修补时遇到了这个问题,我正在为新客户做什么,但我不太了解magento,看看问题是什么或如何修复它。

有人有什么想法吗?我实际上有2个补丁我遇到问题:

版本1.9.0.1

PATCH_SUPEE-6285_CE_1.9.1.1_v2-2015-07-08-08-07-43.sh

> sh PATCH_SUPEE-6285_CE_1.9.1.1_v2-2015-07-08-08-07-43.sh Checking if
> patch can be applied/reverted successfully... ERROR: Patch can't be
> applied/reverted successfully.
> 
> patching file app/Mage.php patching file
> app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php
> patching file app/code/core/Mage/Adminhtml/Controller/Action.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/AjaxController.php patching
> file
> app/code/core/Mage/Adminhtml/controllers/Catalog/Category/WidgetController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Catalog/Product/DatafeedsController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Catalog/Product/WidgetController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Cms/Block/WidgetController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Cms/Page/WidgetController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Cms/PageController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Cms/WysiwygController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Customer/System/Config/ValidatevatController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/JsonController.php patching
> file
> app/code/core/Mage/Adminhtml/controllers/NotificationController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/CustomerController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/ProductController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/ReviewController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/SalesController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/ShopcartController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Report/TagController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/ReportController.php patching
> file
> app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Sales/Billing/AgreementController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Sales/Order/View/GiftmessageController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Sales/Recurring/ProfileController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/Sales/TransactionsController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/System/Config/System/StorageController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/TagController.php patching
> file app/code/core/Mage/Adminhtml/controllers/Tax/RateController.php
> patching file
> app/code/core/Mage/Adminhtml/controllers/TaxController.php patching
> file
> app/code/core/Mage/Api2/controllers/Adminhtml/Api2/AttributeController.php
> patching file
> app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php
> patching file
> app/code/core/Mage/Captcha/controllers/Adminhtml/RefreshController.php
> patching file
> app/code/core/Mage/Centinel/controllers/Adminhtml/Centinel/IndexController.php
> patching file
> app/code/core/Mage/Checkout/controllers/MultishippingController.php
> patching file
> app/code/core/Mage/Connect/controllers/Adminhtml/Extension/LocalController.php
> patching file app/code/core/Mage/ImportExport/Model/Abstract.php Hunk
> #1 succeeded at 89 with fuzz 2 (offset -6 lines). patching file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php
> patching file
> app/code/core/Mage/Paygate/controllers/Adminhtml/Paygate/Authorizenet/PaymentController.php
> patching file
> app/code/core/Mage/Paypal/controllers/Adminhtml/Paypal/ReportsController.php
> patching file app/code/core/Mage/Rss/controllers/CatalogController.php
> patching file app/code/core/Mage/Rss/controllers/OrderController.php
> patching file
> app/code/core/Mage/Widget/Block/Adminhtml/Widget/Chooser.php patching
> file
> app/code/core/Mage/Widget/controllers/Adminhtml/WidgetController.php
> patching file
> app/design/frontend/base/default/template/checkout/cart.phtml patching
> file
> app/design/frontend/base/default/template/checkout/cart/noItems.phtml
> Hunk #1 succeeded at 31 with fuzz 1. patching file
> app/design/frontend/base/default/template/checkout/onepage/failure.phtml
> patching file
> app/design/frontend/base/default/template/rss/order/details.phtml
> patching file
> app/design/frontend/base/default/template/wishlist/email/rss.phtml
> can't find file to patch at input line 894 Perhaps you used the wrong
> -p or --strip option? The text leading up to this was:
> -------------------------- |diff --git app/design/frontend/default/modern/template/checkout/cart.phtml
> app/design/frontend/default/modern/template/checkout/cart.phtml |index
> 43698c2..f4fe5ab 100644 |---
> app/design/frontend/default/modern/template/checkout/cart.phtml |+++
> app/design/frontend/default/modern/template/checkout/cart.phtml
> -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file
> app/design/frontend/rwd/default/template/checkout/cart.phtml Hunk #1
> succeeded at 115 with fuzz 1. The next patch would create the file
> downloader/Maged/.htaccess, which already exists!  Assume -R? [n]
> Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored patching
> file downloader/Maged/Controller.php patching file
> downloader/Maged/Model/Session.php patching file
> downloader/lib/.htaccess patching file
> downloader/template/connect/packages.phtml patching file
> downloader/template/connect/packages_prepare.phtml patching file
> downloader/template/login.phtml patching file
> downloader/template/settings.phtml patching file errors/processor.php

和PATCH_SUPEE-6788_CE_1.9.0.1_v1-2015-10-26-11-46-45.sh

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

patching file .htaccess
Hunk #1 succeeded at 175 (offset -32 lines).
can't find file to patch at input line 38
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git .htaccess.sample .htaccess.sample
|index b8821af..383313a 100644
|--- .htaccess.sample
|+++ .htaccess.sample
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
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

2 个答案:

答案 0 :(得分:0)

确保您的核心文件未被修改且所有文件都已到位。

因为补丁需要它作为成功的先决条件。

答案 1 :(得分:0)

显然项目中缺少.htaccess.sample。只需从github获取它(右键单击此链接 - >"将链接保存为" https://raw.githubusercontent.com/OpenMage/magento-mirror/d0b97bacb84d061d98f7f765b9edf932d7ac6da8/.htaccess.sample)并将其放入Magento根文件夹中。之后你应该能够运行补丁。

HTH