Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Internal erro 500 on affecting members to project

Internal erro 500 on affecting members to project

Added by ismail argou about 6 years ago

Internal error is generated when affecting members to projects .

The used database is   MySQL 8.0.11 Community Server.

As the logs below, the main issue is coming for the fact that the SQL query used to count the members is using the alias GROUPS instead of `GROUPS ` which is a reserved keyword in MYSQL 8 .

Looking forward for a solution to overcome this issue .

Completed 500 Internal Server E
rror in 455ms (ActiveRecord: 29.5ms)
F, [2019-02-11T22:08:50.961838 #3403] FATAL -- :
F, [2019-02-11T22:08:50.961914 #3403] FATAL -- : ActionView::Template::Error (My
sql2::Error: You have an error in your SQL syntax; check the manual that corresp
onds to your MySQL server version for the right syntax to use near 'groups
ON groups.id = group_users.group_id WHERE `members`.`id` IN' at li
ne 3: SELECT COUNT(DISTINCT `members`.`id`) FROM `members` LEFT OUTER JOIN `memb
er_roles` ON `member_roles`.`member_id` = `members`.`id` LEFT OUTER JOIN `roles`
ON `roles`.`id` = `member_roles`.`role_id` LEFT OUTER JOIN `users` ON `users`.`
id` = `members`.`user_id` LEFT OUTER JOIN `member_roles` `member_roles_members`
ON `member_roles_members`.`member_id` = `members`.`id` LEFT JOIN group_users AS
group_users
ON group_users.user_id = members.user_id
LEFT JOIN (SELECT id, lastname AS group_name FROM users) AS groups
ON groups.id = group_users.group_id WHERE `members`.`id` IN (SELEC
T `members`.`id` FROM `members` WHERE (members.project_id IN ('6')))):


Loading...