您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

这个问题怎么解决啊,求求各位了

2024/3/5 5:29:33发布28次查看
运行分享方维购物分享系统2.2商业版程序的时候出现的错误
fanwe database error
the database has encountered a problem.
error messages:
[type] dbquery_error
[1064] you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near ') limit 0,20' at line 1
[query] select share_id,uid,content,collect_count,comment_count,create_time,cache_data from share where share_id in () limit 0,20
program messages:
[line: 0027]note.php(notemodule::goods)
[line: 0011]core/module/note.module.php(notemodule::show)
[line: 0068]core/module/note.module.php(shareservice->getcollectsharebyshare)
[line: 2860]core/service/share.service.php(fdb->fetchall)
[line: 0170]core/class/db.class.php(fdb->_execute)
[line: 0303]core/class/db.class.php(fdbmysql->fetchall)
[line: 0111]core/class/mysql.class.php(fdbmysql->query)
[line: 0151]core/class/mysql.class.php(fdbmysql->halt)
[line: 0233]core/class/mysql.class.php(fanweerror->dberror)
[line: 0121]core/class/error.class.php(fanweerror->debugbacktrace)
回复讨论(解决方案) select share_id,uid,content,collect_count,comment_count,create_time,cache_data from share where share_id in  () limit 0,20
参数没有传递进去或者传递进去的参数为空值,自己检查一下吧。
不知道在哪改
贴出你的sql语句。
贴出你的sql语句。
是网站程序,我也不知道在哪
安装网站时把测试数据也安装进去试试。。。说来说去还是网站程序垃圾
这个是程序一个bug,在core/service/目录下share.service.php文件,条件判断出现了bug问题,下面两种修改方法,可以任选其中一种:
方法一:移动条件
$share_ids = array_unique($share_ids);
将此行移动到
if(count($share_ids) > 0) { $share_ids = array_unique($share_ids);// 0) { $list = fdb::fetchall('select share_id,uid,content,collect_count,comment_count,create_time,cache_data from '.fdb::table('share').' where share_id in ('.implode(',',$share_ids).') limit 0,'.$num); $list = shareservice::getsharedetaillist($list); }
修改为:
if(count($share_ids) > 0 && $share_ids) //增加判断$share_ids是否存在 { $list = fdb::fetchall('select share_id,uid,content,collect_count,comment_count,create_time,cache_data from '.fdb::table('share').' where share_id in ('.implode(',',$share_ids).') limit 0,'.$num); $list = shareservice::getsharedetaillist($list); }
修复成功了!
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product