pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
2.82k stars 76 forks source link

Person page 500 error | posgresql related #1117

Closed bin101 closed 1 month ago

bin101 commented 1 month ago

Describe the bug Something in between 7.0.2 and 7.1.0 has broken the person page for me. Opening the chrome dev console shows an 500 error for the apps/memories/api/clusters/facerecognition endpoint:

{
    "message": "An exception occurred while executing a query: SQLSTATE[42803]: Grouping error: 7 ERROR:  column \"frp.id\" must appear in the GROUP BY clause or be used in an aggregate function\nLINE 40: ...mcov\".\"fileid\")) LIMIT 1) AS \"cover\" FROM (SELECT \"frp\".\"id\"...\n                                                              ^"
}

First i thought is was the same issue as in #285 but this to be something new.

To Reproduce Steps to reproduce the behavior:

Screenshots If applicable, add screenshots to help explain your problem.

Platform:

pulsejet commented 1 month ago

Can you validate the patch in https://github.com/pulsejet/memories/commit/ef75771e0823158332155c0c1485e28020a1066a

bin101 commented 1 month ago

@pulsejet can confirm that this is the fix