安装magento

时间:2016-01-27 08:18:03

标签: magento ssh patch yum

我已从此链接下载文件: https://github.com/brentwpeterson/magento-patches/blob/master/CE1.9-EE1.14/PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh 并保存在根文件夹中。当我运行命令时:

bash PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh

然后它给了我错误:

PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh: line 7: $'\r': command not found
PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh: line 9: syntax error near unexpected token `$'{\r''
PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh: line 9: `_check_installed'tools() {

我关注此链接:Magento 1.7.2 SECURITY PATCH ERROR Via SSH。我正在尝试运行

yum install patch

但这没有安装,因为我进一步移动它给了我错误。 此外,我还没有安装任何以前的补丁,这个补丁是否依赖于以前的补丁?

我想告诉您我已对核心文件进行了更改,但现在我已将其还原,并且在安装4291,6237,7616补丁后,我正在尝试运行命令:

sh PATCH_SUPEE-7405_CE_1.9.0.1_v1-2016-01-20-04-45-14.sh

现在我收到错误:

    checking file app/code/core/Mage/Admin/Model/Observer.php
Hunk #2 FAILED at 43.
Hunk #3 succeeded at 64 with fuzz 2 (offset -4 lines).
1 out of 3 hunks FAILED
checking file app/code/core/Mage/Admin/Model/Redirectpolicy.php
checking file app/code/core/Mage/Admin/Model/Resource/User.php
checking file app/code/core/Mage/Admin/Model/User.php
checking file app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php
checking file app/code/core/Mage/Adminhtml/Block/Widget/Grid.php
checking file app/code/core/Mage/Adminhtml/Helper/Catalog/Product/Edit/Action/Attribute.php
checking file app/code/core/Mage/Adminhtml/Helper/Sales.php
checking file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/File.php
checking file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image.php
checking file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image/Favicon.php
checking file app/code/core/Mage/Adminhtml/controllers/IndexController.php
checking file app/code/core/Mage/Authorizenet/Helper/Admin.php
checking file app/code/core/Mage/Authorizenet/Helper/Data.php
checking file app/code/core/Mage/Authorizenet/controllers/Adminhtml/Authorizenet/Directpost/PaymentController.php
checking file app/code/core/Mage/Captcha/etc/config.xml
checking file app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php
checking file app/code/core/Mage/Catalog/Model/Category/Attribute/Backend/Image.php
checking file app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Image.php
checking file app/code/core/Mage/CatalogIndex/etc/config.xml
checking file app/code/core/Mage/CatalogInventory/Helper/Minsaleqty.php
checking file app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php
checking file app/code/core/Mage/Checkout/controllers/CartController.php
checking file app/code/core/Mage/Checkout/controllers/OnepageController.php
checking file app/code/core/Mage/Core/Helper/Data.php
checking file app/code/core/Mage/Core/Model/App.php
checking file app/code/core/Mage/Core/Model/Config.php
checking file app/code/core/Mage/Core/Model/Email/Template/Filter.php
Hunk #1 FAILED at 166.
Hunk #2 succeeded at 177 (offset -10 lines).
1 out of 2 hunks FAILED
checking file app/code/core/Mage/Core/Model/File/Validator/Image.php
checking file app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php
checking file app/code/core/Mage/Core/Model/Session.php
checking file app/code/core/Mage/Customer/controllers/AccountController.php
Hunk #1 succeeded at 65 (offset -3 lines).
checking file app/code/core/Mage/Dataflow/Model/Convert/Parser/Csv.php
Hunk #2 FAILED at 264.
1 out of 2 hunks FAILED
checking file app/code/core/Mage/Downloadable/controllers/CustomerController.php
checking file app/code/core/Mage/ImportExport/Model/Export/Adapter/Abstract.php
checking file app/code/core/Mage/ImportExport/Model/Export/Adapter/Csv.php
Hunk #2 FAILED at 118.
Hunk #3 succeeded at 121 (offset -12 lines).
1 out of 3 hunks FAILED
checking file app/code/core/Mage/ImportExport/Model/Import/Entity/Abstract.php
checking file app/code/core/Mage/ImportExport/etc/config.xml
checking file app/code/core/Mage/ImportExport/etc/system.xml
checking file app/code/core/Mage/Newsletter/Model/Observer.php
checking file app/code/core/Mage/Newsletter/Model/Queue.php
checking file app/code/core/Mage/Page/etc/system.xml
checking file app/code/core/Mage/Paypal/controllers/PayflowController.php
checking file app/code/core/Mage/Paypal/controllers/PayflowadvancedController.php
checking file app/code/core/Mage/Paypal/etc/config.xml
checking file app/code/core/Mage/Persistent/etc/config.xml
checking file app/code/core/Mage/Review/controllers/ProductController.php
checking file app/code/core/Mage/Rss/Block/Catalog/Salesrule.php
checking file app/code/core/Mage/Rss/Helper/Order.php
checking file app/code/core/Mage/Sales/Helper/Guest.php
checking file app/code/core/Mage/Sales/Model/Quote/Address.php
checking file app/code/core/Mage/Sales/Model/Quote/Item.php
can't find file to patch at input line 2014
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git app/code/core/Zend/Xml/Security.php app/code/core/Zend/Xml/Security.php
|index a3cdbc8..8b697b9 100644
|--- app/code/core/Zend/Xml/Security.php
|+++ app/code/core/Zend/Xml/Security.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored
checking file app/design/adminhtml/default/default/template/authorizenet/directpost/iframe.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/creditmemo/create/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/creditmemo/view/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/invoice/create/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/invoice/view/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/order/view/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/shipment/create/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/bundle/sales/shipment/view/items/renderer.phtml
checking file app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/file.phtml
checking file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/creditmemo/name.phtml
checking file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/invoice/name.phtml
checking file app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/name.phtml
checking file app/design/adminhtml/default/default/template/sales/items/column/name.phtml
checking file app/design/adminhtml/default/default/template/sales/items/renderer/default.phtml
checking file app/design/adminhtml/default/default/template/sales/order/totals/discount.phtml
checking file app/design/adminhtml/default/default/template/sales/order/view/info.phtml
checking file app/design/frontend/base/default/template/catalog/product/view/options/type/file.phtml
checking file app/design/frontend/base/default/template/rss/order/details.phtml
Hunk #1 succeeded at 77 (offset -1 lines).
checking file lib/Varien/File/Uploader.php
checking file lib/Varien/Io/File.php
Hunk #1 FAILED at 227.
1 out of 1 hunk FAILED

0 个答案:

没有答案