使用 PostgreSQL 数据库分类功能 500 报错!

讨论程序使用中的问题
回复
maplesky
帖子: 2
注册时间: 2018年 10月 15日 02:15

使用 PostgreSQL 数据库分类功能 500 报错!

帖子 maplesky »

正式版新装, 未安装任何东西,直接点击首页任意“分类”链接, 出现 Database Query Error 错误.

Debug 模式下的信息为:

代码: 全选

SQLSTATE[42803]: Grouping error: 7 错误: 字段 "contents.title" 必须出现在 GROUP BY 子句中或者在聚合函数中使用 LINE 1: SELECT contents."cid" , contents."title" , contents."slug" ,...

exception 'Typecho_Db_Query_Exception' with message 'SQLSTATE[42803]: Grouping error: 7 错误: 字段 "contents.title" 必须出现在 GROUP BY 子句中或者在聚合函数中使用 LINE 1: SELECT contents."cid" , contents."title" , contents."slug" ,... ^' in /home/website/web/var/Typecho/Db/Adapter/Pdo.php:105 Stack trace: #0 /home/website/web/var/Typecho/Db.php(354): Typecho_Db_Adapter_Pdo->query('SELECT contents...', Object(PDO), 1, 'SELECT') #1 /home/website/web/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1) #2 /home/website/web/var/Widget/Archive.php(1250): Typecho_Db->fetchAll(Object(Typecho_Db_Query), Array) #3 /home/website/web/var/Widget/Archive.php(1392): Widget_Archive->query(Object(Typecho_Db_Query)) #4 /home/website/web/var/Typecho/Widget.php(221): Widget_Archive->execute() #5 /home/website/web/var/Typecho/Router.php(135): Typecho_Widget::widget('Widget_Archive', NULL, Array) #6 /home/website/web/index.php(23): Typecho_Router::dispatch() #7 {main}


操作系统版本:CentOS 6.5
Apache/NGINX 版本:Nginx / 1.14.0
数据库版本:PostgreSQL 8.4.20
PHP 版本:5.3.3
Typecho 版本:Typecho 1.1 (17.10.30)
浏览器版本:Google Chrome 69.0.3497.81
附件
46920291-a45db100-d01e-11e8-86fd-7f381b258e5f.jpg
46920291-a45db100-d01e-11e8-86fd-7f381b258e5f.jpg (278.38 KiB) 查看 1220 次
回复