php - Magento 补丁 6788 安装错误

标签 php magento ssh patch

我正在尝试通过 ssh 安装 magento 补丁 6788。 但是当我运行命令时

sh PATCH_SUPEE-6788_CE_1.8.1.0_v1-2015-10-26-11-59-27.sh

我遇到了这个错误

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

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git .htaccess .htaccess
|index 60e1795..aca7f55 100644
|--- .htaccess
|+++ .htaccess
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file .htaccess.sample
patching file app/code/core/Mage/Admin/Model/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block.php
patching file app/code/core/Mage/Admin/Model/Resource/Block/Collection.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable.php
patching file app/code/core/Mage/Admin/Model/Resource/Variable/Collection.php
patching file app/code/core/Mage/Admin/Model/Variable.php
patching file app/code/core/Mage/Admin/etc/config.xml
patching file app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.1.1-1.6.1.2.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit/Form.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Block/Grid.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit/Form.php
patching file app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Grid.php
patching file app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php
patching file app/code/core/Mage/Adminhtml/controllers/Permissions/VariableController.php
patching file app/code/core/Mage/Adminhtml/etc/adminhtml.xml
patching file app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php
patching file app/code/core/Mage/Core/Controller/Request/Http.php
Hunk #1 succeeded at 287 (offset -7 lines).
patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
Hunk #1 FAILED at 131.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php.rej

请给我一些从 ssh 升级 magento 当前版本的提示 请帮忙解决这个问题

最佳答案

如果您没有更改文件,只需重命名并替换您的分发版本的 Admin.php。

关于php - Magento 补丁 6788 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33517311/

相关文章:

PHP 脚本执行一段时间后停止,没有错误报告

php - Mysqli multi_query 不执行所有查询

php - 我的 magento 页面和单一产品内容仅在前端丢失,所有内容均已启用。如何刷新 session 数据以找到它?

r - 如何在远程 ssh 连接中在本地绘制 R 绘图?

linux - 在 bash 脚本中退出 ssh session 后保持进程在远程机器上运行

php - 使用同一类中的函数

php - Magento:如何获取 Paypal 交易 ID?

JavaScript 似乎在您的浏览器中被禁用 - Magento

linux - 如何在.sh文件中编写ssh连接代码以连接到远程计算机

php - 有人有使用 php/mysql 的开发/登台/部署工作流程吗?