简体   繁体   English

magento安全更新Patch Supee 5344错误

[英]magento security update Patch Supee 5344 error

I attempted to update magento with the Supee 5344 patch yesterday and got the following error when I ran the sh command. 我试图昨天用Supee 5344补丁更新magento,当我运行sh命令时出现以下错误。

127: not found

127: not found

0: not found

Checking if patch can be applied/reverted successfully... 检查补丁是否可以成功应用/恢复...

patch: unrecognized option `--dry-run'

Usage: /usr/bin/patch [options] [origfile [patchfile]] [+ [options] 
[origfile]]...

Options:
       [-cCeEflnNRsStuv] [-b backup-ext] [-B backup-prefix] [-d directory]
       [-D symbol] [-F max-fuzz] [-i patchfile] [-o out-file] [-p[strip-count]]
       [-r rej-name] [-V {numbered,existing,simple}] [--check] [--context]
       [--prefix=backup-prefix] [--suffix=backup-ext] [--ifdef=symbol]
       [--directory=directory] [--ed] [--fuzz=max-fuzz] [--force] [--batch]
       [--ignore-whitespace] [--forward] [--reverse] [--output=out-file]
       [--strip[=strip-count]] [--normal] [--reject-file=rej-name] [--skip]
       [--remove-empty-files] [--quiet] [--silent] [--unified] [--version]
       [--version-control={numbered,existing,simple}] [--index-first]
ERROR: Patch can't be applied/reverted successfully.

Can anybody help me in figuring what I need to resolve this issue? 任何人都可以帮助我找出解决这个问题的方法吗? Is there a way to implement the patch manually? 有没有办法手动实现补丁?

Steve 史蒂夫

下面是检查Shoplift错误的链接https://shoplift.byte.nl/

I would double check that the patch you are applying is the correct patch for the version of your Magento. 我会仔细检查你正在应用的补丁是你的Magento版本的正确补丁。

The easiest way to find out what version of Magento you are using is to login as admin and it will tell you in the footer. 找出您正在使用的Magento版本的最简单方法是以管理员身份登录,它会在页脚中告诉您。 Once you have this version go to the Magento downloads page and find the right patch file for the right version of magento. 获得此版本后,请转到Magento下载页面,找到正确版本的magento的正确补丁文件。

According to the output the patch binary on your system have no --dry-run option (looks like some BSD OS is installed there, not linux). 根据输出,你的系统上的补丁二进制文件没有--dry-run选项(看起来在那里安装了一些BSD OS,而不是linux)。 Your patch binary though seems provides --check option instead, so you can use it instead of --dry-run by editing PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh file and replacing --dry-run option with --check. 您的补丁二进制文件似乎提供了--check选项,因此您可以通过编辑PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh文件并替换它来使用它而不是--dry-run --dr-run选项与--check。

Another option can be to not use patch at all and just upload all patched files from http://magentary.com/kb/apply-supee-5344-and-supee-1533-without-ssh/ 另一种选择可能是根本不使用补丁,只需从http://magentary.com/kb/apply-supee-5344-and-supee-1533-without-ssh/上传所有修补过的文件

To verify that patch was installed successfully you can use https://shoplift.byte.nl/ service. 要验证修补程序是否已成功安装,您可以使用https://shoplift.byte.nl/ service。

I just came across the exact same error the other day - what fixed it for me was moving an executing the patch in the correct directory (depending on how your Magento site is set up. 我刚刚遇到了完全相同的错误 - 为我修复的是在正确的目录中移动执行补丁(取决于您的Magento站点的设置方式)。

Initially, I was trying to run it out out of /var/www/site-name - it needs to be in /var/www/site-name/magento . 最初,我试图用/var/www/site-name运行它 - 它需要在/var/www/site-name/magento

There are other troubleshooting steps here: http://devdocs.magento.com/guides/m1x/other/ht_install-patches.html#trouble 此处还有其他疑难解答步骤: http//devdocs.magento.com/guides/m1x/other/ht_install-patches.html#trouble

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM