Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maplesky opened this issue Oct 14, 2018 · 0 comments
Open

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

maplesky opened this issue Oct 14, 2018 · 0 comments

Comments

@maplesky
Copy link

maplesky commented Oct 14, 2018

1. 该问题的重现步骤是什么?

正式版新装, 未安装任何东西,直接点击首页任意“分类”链接, 出现 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}

2. 你期待的结果是什么?实际看到的又是什么?

更新 PostgreSQL 数据库接口

3. 问题出现的环境

  • 操作系统版本: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

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant