在magento中安装新补丁

时间:2015-02-26 14:34:02

标签: magento patch

我在Magento中有这个补丁patch.sh,我想运行这个文件并执行它。我登录并尝试使用SSH方式安装。我使用PUTTY。当我运行patch.sh文件时遇到错误,我不知道如何修复它。以下是错误消息:

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

patching file app/code/core/Mage/Admin/Model/Observer.php
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 62.
Hunk #3 FAILED at 73.
3 out of 3 hunks FAILED -- saving rejects to file app/code/core/Mage/Admin/Model/Observer.php.rej
patching file app/code/core/Mage/Core/Controller/Request/Http.php
Hunk #1 FAILED at 76.
Hunk #2 FAILED at 541.
2 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/Core/Controller/Request/Http.php.rej
patching file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php.rej
patching file app/code/core/Mage/XmlConnect/Model/Observer.php
Hunk #1 FAILED at 143.
Hunk #2 FAILED at 160.
2 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/XmlConnect/Model/Observer.php.rej
patching file lib/Varien/Db/Adapter/Pdo/Mysql.php
Hunk #1 FAILED at 2834.
1 out of 1 hunk FAILED -- saving rejects to file lib/Varien/Db/Adapter/Pdo/Mysql.php.rej

我该如何解决?或者我应该从哪里开始调试问题?

3 个答案:

答案 0 :(得分:2)

找到适合我的解决方案,试试这里 http://magentary.com/kb/apply-supee-5344-and-supee-1533-without-ssh/

答案 1 :(得分:1)

您的Magento安装已经过修补,或者您对核心文件进行了修改(例如 app / code / core / Mage / Admin / Model / Observer.php 等)。 解决方案是将您当前的文件与Magento发行版的原始文件进行比较,并了解文件更改的原因。 如果你认为核心文件中没有任何变化,你可以简单地替换 app / code / core / Mage / Admin / Model / Observer.php app / code / core / Mage /Core/Controller/Request/Http.php 等来自相应Magento发行版的原始文件并重新运行补丁。

答案 2 :(得分:0)

试试你的/ var / www magento root

rm -rf var/cache var/session
chmod 550 ./mage
./mage mage-setup .