205 Star 422 Fork 224

小微OA / xiaowei

 / 详情

发生系统错误

待办的
创建于  
2017-02-27 11:30

:(
SQLSTATE[HY000]: General error: 3065 Expression #1:信息未读统计 of ORDER BY clause is not in SELECT list, references column 'xiaowei.c.sort' which is not in SELECT list; this is incompatible with DISTINCT
错误位置
FILE: D:\wamp64\www\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169
TRACE
#0 D:\wamp64\www\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1:信息未读统计 D:\wamp64\www\Application\Home\Model\NodeModel.class.php(64): Think\Db\Driver->query('\t\tSELECT distin...')
#2:添加 push 功能 D:\wamp64\www\Application\Home\Controller\HomeController.class.php(34): Home\Model\NodeModel->get_top_menu('1')
#3:ajaxreturn返回问题m=&c=Role&a=duty模块不显示分配情况 D:\wamp64\www\Application\Home\Controller\HomeController.class.php(24): Home\Controller\HomeController->_assign_menu()
#4:新建流程保存时model遗留问题 D:\wamp64\www\ThinkPHP\Library\Think\Controller.class.php(41): Home\Controller\HomeController->_initialize()
#5:旧版ajaxreturn到新版的更新问题(没有改过来的) D:\wamp64\www\ThinkPHP\Common\functions.php(679): Think\Controller->__construct()
#6:customer通讯录编辑后没有跳转 D:\wamp64\www\ThinkPHP\Library\Think\App.class.php(89): controller('Index', '')
#7:管理-- 用户上传头像 D:\wamp64\www\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8:ForumPostModel.class.php D:\wamp64\www\ThinkPHP\Library\Think\Think.class.php(121): Think\App::run()
#9:邮箱收不到信.老版可以 D:\wamp64\www\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10:信息页无法删除,看图吧 D:\wamp64\www\index.php(25): require('D:\wamp64\www\T...')
#11:30日更新后审批字段管理无权限 {main}

评论 (1)

chyftom 创建了任务

解决方法:
1.在mysql的my.ini里面添加:
sql-mode="ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"
2.将www文件夹下的xiaowei软件删除,重新拷贝一份源码到www文件夹下,重新执行install.php即可

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
PHP
1
https://gitee.com/smeoa/xiaowei.git
git@gitee.com:smeoa/xiaowei.git
smeoa
xiaowei
xiaowei

搜索帮助

14c37bed 8189591 565d56ea 8189591