Discuz! Database Error (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL serv [复制链接]

moqu8 2018-1-11

3153 0
Discuz出现

56495a57354700f1d.png

Discuz! Database 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 ') AND displayorder>=0 ORDER BY dateline desc limit 1' at line 1 错误提示的原因和解决方法


SELECT tid, subject FROM forum_thread WHERE authorid=3 AND fid NOT IN () AND displayorder>=0 ORDER BY dateline desc limit 1

PHP Debug

[tr=rgb(238, 238, 238)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
[tr=rgb(255, 255, 204)][/tr]
No.FileLineCode1forum.php71require(%s)2source/module/forum/forum_viewthread.php998include(%s)3data/template/1_diy_forum_viewthread.tpl.php1hookscriptoutput(%s)4source/function/function_core.php1207hookscript(%s, %s, %s, Array)5source/function/function_core.php1167plugin_blanca_custom_forum->viewthread_postbottom_output(Array)6source/plugin/blanca_custom/blanca_custom.class.php33discuz_database::fetch_first(%s)7source/class/discuz/discuz_database.php91discuz_database::query(%s, Array, false, false)8source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)9source/class/db/db_driver_mysql.php153db_driver_mysql->halt(%s, %d, %s)10source/class/db/db_driver_mysql.php224break()




首先,需要看一下具体的提示:从提示我们可以看到,有这么一行:
source/plugin/blanca_custom/blanca_custom.class.php


很明显,这是因为blanca_custom这个插件才出现的错误!从SELECT tid, subject FROM forum_thread WHERE authorid=3 AND fid NOT IN () AND displayorder>=0 ORDER BY dateline desc limit 1
这一行我们可以分析出,是这个插件里面的这句SQL语句出错!而错误的原因,则要看这一句:

check the manual that corresponds to your MySQL server version for the right syntax to use near
从提示可以看出,是说MySQL版本的问题,因此可以初步判断是因为所使用的SQL语句在当前服务器MySQL的版本下出错,因此解决的方法有一下几个:


1,快速解决:卸载并删除这个有问题的插件,或者联系插件作者修复处理!
2,升级或者降级MySQL版本,以适应这个插件(不推荐,这种兼容性不好的插件建议直接删除!)


最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom
新站优化中!部分功能尚未完善,敬请谅解!
支持中心