[12.1] user manager loads forever with MySQL 8 #1365

Closed
opened 2026-10-05 00:40:57 +02:00 by adam · 0 comments
Owner

If you have no prefix on table names, your groups table is groups, which is, as we all know now, a reserved keyword in MySQL 8.

In the user manager, the frontend performs an AJAX query on pwg.users.getList and it fails because:

[mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'groups WHERE name LIKE '%%'' at line 1
SELECT id FROM groups WHERE name LIKE '%%'; in include/dblayer/functions_mysqli.inc.php on line 847

  1. the "groups" word should be escaped by backticks
  2. why do we send a filter "%%" by default?
If you have no prefix on table names, your groups table is `groups`, which is, as we all know now, a reserved keyword in MySQL 8. In the user manager, the frontend performs an AJAX query on `pwg.users.getList` and it fails because: > [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds > to your MySQL server version for the right syntax to use near 'groups WHERE name LIKE '%%'' at line 1 > SELECT id FROM groups WHERE name LIKE '%%'; in include/dblayer/functions_mysqli.inc.php on line 847 1) the "groups" word should be escaped by backticks 2) why do we send a filter "%%" by default? <!-- github-sync-id:1051756972 -->
adam closed this issue 2026-10-05 00:40:57 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1365