在Magento中立即实施最新的安全补丁

时间:2015-04-30 09:58:57

标签: patch magento-1.8

当我尝试更新安全补丁时,我收到了以下错误消息。

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

patching file app/code/core/Mage/Admin/Model/Observer.php
Hunk #1 FAILED at 37.
Hunk #2 FAILED at 44.
Hunk #3 FAILED at 55.
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 succeeded at 39 with fuzz 1 (offset 1 line).
Hunk #2 succeeded at 537 (offset 1 line).
patching file lib/Varien/Data/Collection/Db.php
Hunk #1 FAILED at 442.
1 out of 1 hunk FAILED -- saving rejects to file lib/Varien/Data/Collection/Db.php.rej

如何在这方面更新补丁?

1 个答案:

答案 0 :(得分:1)

这些核心文件中是否有自定义更改?问题是与补丁文件的版本不匹配或版本不匹配。一个解决方案可以是通过打开PATCH.xxxxx-xxxxx.sh文件手动将补丁应用到文件,然后查看要比较的文件路径和行号,看看添加/更改行应该去哪里(前面是+)哪个应该删除行( - 在前面)。