脚本宝典收集整理的这篇文章主要介绍了php – Magento补丁无法安装,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
$sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh : command not found_1.12.0.0_v1.sh: line 7: 'ATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: line 9: Syntax error near unexpected token `{ 'ATCH_SUPEE-2629_EE_1.12.0.0_v1.sh: line 9: `_check_installed_tools() {
奇怪的是,脚本的第7行是空白的(这里是文件的头部):
#!/bin/bash # Patch apllying tool template # v0.1.2 # (c) Copyright 2013. Magento Inc. # # DO NOT CHANGE ANY LINE IN THIS FILE. # 1. Check required system tools _check_installed_tools() { local missed=""
我们尝试在Windows和Mac,Firefox和Chrome中进行下载,以排除下载过程导致的任何编码问题.该补丁似乎非常新 – 2014年1月17日新增
我们正在运行Magento CommUnity EdITion 1.7.0.2
编辑
我们已尝试使用bash运行.sh文件,但收到相同的响应.
有趣的是,当点击“下载”时,Magento在浏览器中显示.sh源代码,因此我们尝试了各种view-source组合然后保存;从浏览器窗口复制文本并将其保存到文本文件.尽管将错误消息更改为:
$sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh Checking if patch can be applied/reverted successfully... /usr/bin/patch: **** malformed patch at line 238: ERROR: Patch can't be applied/reverted successfully.
第238行是这里的空白注释行:
+/** + * Abstract helper class for {@link Zend_PDF_FileParser} that PRovides the + * data source for parsing. + * + * concrete subclasses allow for parsing of in-memory,filesystem,and other + * sources through a common API. These subclasses also take care of error + * handling and other mundane tasks.
我们还尝试了这里提到的VI步骤 – :set ff unix
http://www.magentocommerce.com/boards/viewthread/864518
然后错误更改为:
$sh PATCH_SUPEE-2629_EE_1.12.0.0_v1.sh Checking if patch can be applied/reverted successfully... ERROR: Patch can't be applied/reverted successfully. patching file app/code/core/Mage/CataLOG/Model/Product.PHP Hunk #1 Failed at 1936. 1 out of 1 hunk Failed -- 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 Hunk #1 Failed at 43. 1 out of 1 hunk Failed -- 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 patching file app/code/core/Zend/Pdf/FileParserDataSource.PHP
以上是脚本宝典为你收集整理的php – Magento补丁无法安装全部内容,希望文章能够帮你解决php – Magento补丁无法安装所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。