fecmall 后台excel 批量上传分类和产品数据失败,无法上传的报错处理

技术分享 · Fecmall · 于 4年前 发布 · 1582 次阅读

fecmall后台支持excel上传产品和分类,来方便大家

如果excel表格的数据是正确的,但是上传excel后没有反应,可能是权限的问题

chmod 777 -R ./appadmin/runtime/upload

然后重新测试是否可以上传

有一些历史版本会js报错Uncaught ReferenceError: func is not defined,忽视即可,这个报错不影响form提交,另外新版本已经去除这个。

共收到 3 条回复
zkffecmall#13年前 0 个赞

fecyo2.9.1产品批量上传the server responded with a status of 500

权限已修改 错误信息如下: Uncaught ReferenceError: func is not defined

at HTMLButtonElement.onclick (VM289 :1)

managerupload:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error) VM302 :1 Uncaught ReferenceError: func is not defined

at HTMLButtonElement.onclick (VM289 :1)

onclick @ VM302 :1 VM304 managerupload:1 POST http://....../catalog/productupload/managerupload 500 (Internal Server Error)

preview信息如下:

PHP Deprecated Warning – yii\base\ErrorException Array and string offset access syntax with curly braces is deprecated

  1. in /www/wwwroot/....../vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.phpat line 526 ...
2楼 已删除.
Fecmall#33年前 0 个赞

文件权限问题

进入fecmall的根目录,执行命令行

chmod 777 -R ./appadmin/runtime/upload
Fecmall#43年前 0 个赞

上传产品的代码文件路径是:

@fecshop\app\appadmin\modules\Catalog\block\productupload\Manager.php

函数:uploadProduct()

可以自行debug代码,找找原因。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics