[upload] Fatal error: Uncaught mysqli_sql_exception: Duplicate entry for key PRIMARY #2081

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

In the upload form, when you upload twice the same photo in the same upload set, Piwigo detects it's a duplicate an re-use the same thumbnail with the same image_id. The link to manage the photo set, with batch=1,2,1 includes twice the same image id and when you click on it, you get:

Fatal error: Uncaught mysqli_sql_exception: Duplicate entry for key PRIMARY

In the upload form, when you upload twice the same photo in the same upload set, Piwigo detects it's a duplicate an re-use the same thumbnail with the same `image_id`. The link to manage the photo set, with `batch=1,2,1` includes twice the same image id and when you click on it, you get: > Fatal error: Uncaught mysqli_sql_exception: Duplicate entry for key PRIMARY <!-- github-sync-id:3281836174 -->
adam closed this issue 2026-10-05 01:05:48 +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#2081