changing permission on a representative photo may lead to error #642

Open
opened 2026-10-05 00:08:46 +02:00 by adam · 5 comments
Owner

A user has reported an issue:

Notice: Undefined offset: 3653 in include/category_cats.inc.php on line 298

This is a thumbnail photo with permissions changed.

A user has reported an issue: > Notice: Undefined offset: 3653 in include/category_cats.inc.php on line 298 This is a thumbnail photo with permissions changed. <!-- github-sync-id:232227485 -->
Author
Owner

changed to more restrictive? and I assume it's with the level of privacy

changed to more restrictive? and I assume it's with the level of privacy <!-- github-comment-id:304856034 -->
Author
Owner

I don't know, I need to make some tests. This is a problem I've seen from time to time, but I was never able to reproduce it properly.

I don't know, I need to make some tests. This is a problem I've seen from time to time, but I was never able to reproduce it properly. <!-- github-comment-id:304934001 -->
Author
Owner

I still can't reproduce the bug. I have tested:

  1. increase privacy level of the photo (superior to the user privacy level)
  2. use a photo from another album as representative, then make the "other" album private
  3. delete the photo

None of these produces any issue.

I still can't reproduce the bug. I have tested: 1. increase privacy level of the photo (superior to the user privacy level) 2. use a photo from another album as representative, then make the "other" album private 3. delete the photo None of these produces any issue. <!-- github-comment-id:330219600 -->
Author
Owner

In the same area, but possibly as a different issue, if you make a photo a representative of another album, then delete the album containing the photo, the album for which the photo is a representative still retains that image as a representative image. Seen on piwigo 1.9.1 using the restful ws api. Not sure if the same occurs in the website version.

In the same area, but possibly as a different issue, if you make a photo a representative of another album, then delete the album containing the photo, the album for which the photo is a representative still retains that image as a representative image. Seen on piwigo 1.9.1 using the restful ws api. Not sure if the same occurs in the website version. <!-- github-comment-id:344681517 -->
Author
Owner

@extorn that's normal since you didn't delete that photo. but that's an entire other matter so if you want to talk more about it let's start on the forum please

@extorn that's normal since you didn't delete that photo. but that's an entire other matter so if you want to talk more about it let's start on the forum please <!-- github-comment-id:344682604 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#642