Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2352

Closed
Open
Created Dec 23, 2012 by Administrator@rootOwner

Wiki is working wrong way.

Created by: afefelov

Hello,

When I gone to http://example.com/cs/crm/wikis/pages I've got 500.

Looking into logs found

Started GET "/cs/crm/wikis/pages" for 127.0.0.1 at 2012-12-23 23:53:23 +0600
  Rendered wikis/pages.html.haml within layouts/project_resource (10.2ms)
ActionView::Template::Error (PG::Error: ERROR:  column "wikis.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "wikis".* FROM "wikis"  WHERE "wikis"."project_id" = ...
: SELECT "wikis".* FROM "wikis"  WHERE "wikis"."project_id" = 18 GROUP BY slug ORDER BY created_at):
    10:     - @wikis.each_with_index do |wiki_page, i|
  app/views/wikis/pages.html.haml:10:in `_app_views_wikis_pages_html_haml___226002480_107603930'

Looks like sql is not properly constructed for postgres.

Assignee
Assign to
Time tracking