#1 2025-07-25 17:45:00

piwiguy
Member
2025-07-25
3

Unkown user showing in "Acitivy" log

Hi there,

I have a "User#9" showing up in my activity log with apparent successful log in and log out events.
This user is not listed my user list but some of these events coincide with me login in with my username.
Any idea why this could be happening and how to avoid it?

Environment details:

    Piwigo 15.5.0 Check for upgrade
    Installed on 7 March 2024, 1 year 4 months 2 weeks 3 days ago
    Operating system: Linux
    PHP: 7.4.33 (Show info) [2025-07-25 11:42:02]
    MySQL: 5.5.5-10.5.25-MariaDB-cll-lve [2025-07-25 11:42:02]
    Graphics Library: ImageMagick ImageMagick 7.1.1-47
    Cache size N/A   never calculated Refresh

Thanks

Offline

 

#2 2025-07-25 18:50:12

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13959

Re: Unkown user showing in "Acitivy" log

Is your user the user with user_id=9 ? See on my screenshot how to find your user id :

https://sandbox.piwigo.com/uploads/4/y/1/4y1zzhnrnw//2025/07/25/20250725184845-15db4dd6.png

Offline

 

#3 2025-07-25 19:14:36

piwiguy
Member
2025-07-25
3

Re: Unkown user showing in "Acitivy" log

My user-ID number showing as per your method is user_id=1.

User IDs as determined by the same method for all users increase chronologically and jump from 7 to 11 (included). So I have no idea what/who user_id_9 is, or was.

Would a deleted user keep its user_id in the Piwigo databse and possibly register an event if they attempt to log in? Which would imply that their username is still present there and associated with their previously attributed user_ID. But it does not make sense since the log shows "log out" events, which implies their log in attempts were successful, even though they would have been deleted.

Offline

 

#4 2025-07-26 14:39:01

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13959

Re: Unkown user showing in "Acitivy" log

piwiguy wrote:

My user-ID number showing as per your method is user_id=1.

There is no reason you would see user#9 if user#1 is connecting.

piwiguy wrote:

User IDs as determined by the same method for all users increase chronologically and jump from 7 to 11 (included). So I have no idea what/who user_id_9 is, or was.

You should be able to find in the history of activities when a user was deleted.

piwiguy wrote:

Would a deleted user keep its user_id in the Piwigo databse and possibly register an event if they attempt to log in?

If the user is deleted, its "line" in the database is removed. There is no way she can sign in again. And the user_id will never be used again by another user.

Your situation is very "unexpected".

Offline

 

#5 2025-07-26 16:34:19

piwiguy
Member
2025-07-25
3

Re: Unkown user showing in "Acitivy" log

There is no reason you would see user#9 if user#1 is connecting.

I have no idea what you mean by that.


I see user#9 activity when I select user#9 (6 Activities) from the drop-down list provided beside "Selected user". User#9 does not appear in the user list itself but appears in that drop-down list.


You should be able to find in the history of activities when a user was deleted.

Yes, both creation and deletion of user#9 are listed in my activity log as admin:

add 1 user added Friday 14 June 2024 14:04:32 * ******** **.***.**.*** pwg.users.add user#9
deletion 1 user deleted Sunday 4 May 2025 12:31:35 * ******** **.***.**.*** pwg.users.delete user#9

All 6 activities listed for ex-user#9 are dated between  Friday 14 June 2024 14:08:42 and  Thursday 25 July 2024, so during user#9 existence as valid user.

So your system apparently allows for activities from ex users to be displayed even after their deletion (which is good). To that effect, the list offered from the Acitivity /  Selected user drop down list includes deleted users... which is not entirely trivial a priori.

Offline

 

#6 2025-07-26 17:23:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13959

Re: Unkown user showing in "Acitivy" log

OK... I understand better now.

When you delete a user, Piwigo does not delete related activities. You just no longer know the name of this user.

Offline

 

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2025 · Contact