Magento CE 1.9.1 补丁
-
12-12-2019 - |
题
我已经下载了最新的 CE 版本 1.9.1.0,并使用以下命令成功修补了安装 SUPEE-4829
修补。
我看到另外 2 个补丁可能适用于 1.9.1 - SUPEE-1533 (Addresses two potential remote code execution exploits)
和 SUPEE-4291/4334 (This patch addresses the USPS API changes...)
. 。我尝试应用这些补丁,但收到以下错误消息:
SUPEE-1533.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.
patching file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php.rej
patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.php
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Adminhtml/controllers/DashboardController.php.rej
SUPEE-4291/4334
Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.
patching file app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
patch unexpectedly ends in middle of line
2 out of 2 hunks ignored -- saving rejects to file app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php.rej
这些补丁被设为可执行(chmod +x scriptname.sh
),并使用两者运行 sh scriptname.sh
和 ./scriptname.sh
, ,但我仍然收到相同的消息。
我对 shell 脚本可能出现的问题感到非常困惑,那么这些补丁真的很重要吗?
谢谢
解决方案
其他 2 个补丁(4291 和 1533)实际上是针对 Magento 1.9.0.1 及更早版本发布的。它们已经合并到 1.9.1.0 中,这就是您无法在 1.9.1.0 中成功修补它们的原因。下载页面上列出的版本有点误导。