搜索
开启辅助访问 切换到宽版

QQ登录

只需一步,快速开始

扫一扫,访问微社区

注册 找回密码
查看: 3611|回复: 0
打印 上一主题 下一主题

opencart 上传图片出错error_filetype

[复制链接]
跳转到指定楼层
楼主
发表于 2014-7-3 20:15:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近客户反映安装完1.5.6.3和1.5.6.2后,后台上传图片报错 error_filetype.
我们检查后发现一个小bug,一下是修复方法

1、查找文件:admin/controller/catalog/download.php
位置:498行位置
找到并删除if (preg_match('/\<\?/i', $content)) {
用这行替换if (preg_match('/\<\?php/i', $content)) {

2、admin/controller/common/filemanager.php
位置:468,469行
找到这2行                if (preg_match('/\<\?/i', $content)) {
                                        $json['error'] = $this->language->get('error_filetype');

使用下面2行替换
                                if (preg_match('/\<\?php/i', $content)) {
                                        $json['error'] = $this->language->get('error_file_type');
                                  }

3、admin/controller/sale/order.php
位置:2326
找到并删除               if (preg_match('/\<\?/i', $content)) {
用这行替换              if (preg_match('/\<\?php/i', $content)) {

4.catalog/controller/product/product.php
位置:756
找到并删除        if (preg_match('/\<\?/i', $content)) {
用这行替换        if (preg_match('/\<\?php/i', $content)) {


如果不想麻烦,可以用附件中的VQMOD文件,也可以处理
png image fix.xml (1.45 KB, 下载次数: 80)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

QQ|手机版|OpenCart - 中文官方网站 ( 蜀ICP备09033774号|人工智能

GMT+8, 2024-6-18 19:24 , Processed in 0.102875 second(s), 27 queries , Gzip On.

快速回复 返回顶部 返回列表