YAFLogo

talhashah
  • talhashah
  • 52% (Neutral)
  • YAF Forumling Topic Starter
a month ago
Dear YAF.NET Support Team,

I am currently using YAF.NET Forum version 2.24.18. While managing users, I noticed an issue with guest users:

One of the guest users (ID: 1) is my main guest user, which I understand cannot be deleted.

However, there are two additional suspicious guest users that I want to delete for security reasons. Unfortunately, I am unable to delete these users, and I am unsure why.

Could you please assist me in understanding why these guest users cannot be deleted? Additionally, if there is a workaround or solution to address this issue, I would greatly appreciate your guidance.

Looking forward to your response.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a month ago
If i remember correctly those guest users could be deleted users. What errors are you getting?
talhashah
  • talhashah
  • 52% (Neutral)
  • YAF Forumling Topic Starter
a month ago
Deleting a guest user causes the login page to display an error message: "Unable to find guest user." This happens because the system likely references the guest user as part of the default session or page flow. When the user is deleted, the system can't locate it, preventing the login page from loading properly.

To resolve this, I'm running the following query in the database to restore forum access:

INSERT INTO yaf_UserGroup (UserID, GroupID)

VALUES (

    (SELECT UserID FROM yaf_User WHERE UserID = 89979),

    (SELECT GroupID FROM yaf_Group WHERE Name = 'Guests')

);

There are two suspicious guest users that I want to delete for security reasons. Unfortunately, I am unable to delete these users, and I am unsure why.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
a month ago
Check the default guest user with id 1, is the isguest checkbox enabled and also is the user part of the "Guests" user group?