【问题标题】:Magento Patch for PHP Version 5.4适用于 PHP 版本 5.4 的 Magento 补丁
【发布时间】:2014-01-27 00:45:11
【问题描述】:

任何人在应用 Magento PATCH for Php 5.4 最新版本时遇到此错误

$ sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh

我也试过这个指令,但它对我不起作用:

http://www.magentocommerce.com/knowledge-base/entry/apply-revert-magento-patches?icid=BLOG_php54_knowledgebase

PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 14: PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 127: not found
PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 14: PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 127: not found
PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 25: PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

patching file app/code/core/Mage/Catalog/Model/Product.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/Catalog/Model/Product.php.rej

patching file app/code/core/Mage/Core/Controller/Varien/Router/Standard.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/Core/Controller/Varien/Router/Standard.php.rej

patching file app/code/core/Mage/Install/etc/config.xml

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/Install/etc/config.xml.rej

The next patch would create the file app/code/core/Zend/Pdf/FileParserDataSource.php,
which already exists!  Assume -R? [n] 

Apply anyway? [n] 

Skipping patch.

1 out of 1 hunk ignored

【问题讨论】:

  • 我遇到了类似的问题:找不到命令:第 7 行
  • 同样的问题,当前的 1 个答案在我的情况下不起作用,但很有用,因为我现在已经消除了另一种可能性。 :-)

标签: php magento patch


【解决方案1】:

您看到该特定响应的原因是(很可能)补丁已应用。

我已经在一个干净的 Magento 安装上运行了一个快速补丁:

oleg@sandbox:~/www/magento_enterprise$ sudo sh PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 25: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 0: not found
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.

现在,您可以看到它已成功修补,没有任何问题。成功补丁后,我再次运行相同的补丁并得到了这个:

oleg@sandbox:~/www/magento_enterprise$ sudo sh PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 25: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 0: not found
Checking if patch can be applied/reverted successfully...
-e ERROR: Patch can't be applied/reverted successfully.

patching file app/code/core/Mage/Catalog/Model/Product.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/Catalog/Model/Product.php.rej
patching file app/code/core/Mage/Core/Controller/Varien/Router/Standard.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/Core/Controller/Varien/Router/Standard.php.rej
The next patch would create the file app/code/core/Zend/Pdf/FileParserDataSource.php,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored

看起来和你那里的很相似。

尝试运行:

sudo sh YOUR_PATCH.sh --list

查看已为您应用了哪些补丁 Magento 安装以确认您的补丁是否已应用。

应用上述补丁后我的输出是:

oleg@sandbox:~/www/magento_enterprise$ sudo sh PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh --list
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 14: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 127: not found
PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 25: PATCH_SUPEE-2619_EE_1.13.1.0_v1-2014-01-21-05-52-03.sh: 0: not found
-e Applied/reverted patches list:
-e 2014-02-07 23:29:18 UTC | SUPEE-2619 | EE_1.13.1.0 | v1 | d0a215a139aa5e75d60e42efa1b2661d84fef2be | Tue Dec 10 17:41:31 2013 +0200 | v1.13.1.0..HEAD
-e 2014-02-12 10:24:33 UTC | SUPEE-2619 | EE_1.13.1.0 | v1 | d0a215a139aa5e75d60e42efa1b2661d84fef2be | Tue Dec 10 17:41:31 2013 +0200 | v1.13.1.0..HEAD | REVERTED

您也可以恢复补丁并再次尝试重新修补 Magento。要恢复补丁运行:

sudo sh YOUR_PATCH.sh -R

希望这会有所帮助!

【讨论】:

  • 我遇到了与 OP 相同的问题,“应用/恢复的补丁列表:”返回“”。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-21
  • 2017-02-27
  • 2014-12-16
  • 1970-01-01
相关资源
最近更新 更多