[warnings] Warning on history page when image has been deleted #106

Closed
opened 2026-10-04 23:43:37 +02:00 by adam · 3 comments
Owner

Reported by tiico on 21 Nov 2009 13:24

Version: 2.0.6

When an image has already been visited by users and after this picture is deleted (picture upload by ploader), this picture is not present on the database (any entry).
However, when the administrator want to search on history and check all the consulted picture for some days, a line with this picture is present (only if a user has consulted this picture).
But, in the database, the picture ID is not present and some warning appears on admin page.
Like this for ex :
<b>Notice</b>: Undefined index: 25 in <b>.../piwigo/admin/history.php</b> on line <b>442</b><br />
In this exemple, the image 25 (id in the database) has been deleted by the administrator.

Steps to reproduce: insert a picture by ploader
History must be saved by piwigo (config param)
consult this picture with one or more user
delete this picture (through piwigo admin page)
search on the history all the consulted pages.

Piwigo Bugtracker #1258

**Reported by tiico on 21 Nov 2009 13:24** **Version:** 2.0.6 When an image has already been visited by users and after this picture is deleted (picture upload by ploader), this picture is not present on the database (any entry). However, when the administrator want to search on history and check all the consulted picture for some days, a line with this picture is present (only if a user has consulted this picture). But, in the database, the picture ID is not present and some warning appears on admin page. Like this for ex : &lt;b&gt;Notice&lt;/b&gt;: Undefined index: 25 in &lt;b&gt;.../piwigo/admin/history.php&lt;/b&gt; on line &lt;b&gt;442&lt;/b&gt;&lt;br /&gt; In this exemple, the image 25 (id in the database) has been deleted by the administrator. **Steps to reproduce:** insert a picture by ploader History must be saved by piwigo (config param) consult this picture with one or more user delete this picture (through piwigo admin page) search on the history all the consulted pages. [Piwigo Bugtracker #1258](http://piwigo.org/bugs/view.php?id=1258) <!-- github-sync-id:97225859 -->
adam closed this issue 2026-10-04 23:43:37 +02:00
Author
Owner

Comment posted by nikrou on 21 Nov 2009 19:35

I confirm.
We must find a way to present theses deleted images in stats. Perhaps with a special icon.

**Comment posted by nikrou on 21 Nov 2009 19:35** I confirm. We must find a way to present theses deleted images in stats. Perhaps with a special icon. <!-- github-comment-id:124891869 -->
Author
Owner

Comment posted by tiico on 23 Nov 2009 09:15

A similar option (to update database i think) seems to be present in Astat plugin. This plugin check if an "unknow file" is present on history and inform administrator and suggest to correct this "warning".

**Comment posted by tiico on 23 Nov 2009 09:15** A similar option (to update database i think) seems to be present in Astat plugin. This plugin check if an &quot;unknow file&quot; is present on history and inform administrator and suggest to correct this &quot;warning&quot;. <!-- github-comment-id:124891885 -->
Author
Owner

This bug was fixed in a recent version of Piwigo

This bug was fixed in a recent version of Piwigo <!-- github-comment-id:215347061 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#106