NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Bug Deleting a active user results in Uncaught TypeError
Started by Electrocute4u

Electrocute4u

Electrocute4u

Member
Joined
29 Aug 2022
Last Seen
16 Dec 2022
Topics
2
Posts
2

I'll leave the debug trace for the experts to figure out. No parts of the given debug code have been modified and remain completely untouched from the first installation of Namelessmc v2, in other words, the User.php file has never been modified since I installed Namelessmc v2.

Debug Trace: https://debug.namelessmc.com/QMd3ViSV5T

 

Issue:

In short, deleting a user that is currently active (logged in and validated through email) results in a TypeError and crashes the site for a good 4 minutes with the bug before it resolves itself, probably finally processed deleting the user completely and revisiting the broken code and proceeds as normal.

Uncaught TypeError

Typed property User::$_main_group must be an instance of Group, null used

Electrocute4u · about 1 year ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
05 May 2024
Topics
41
Posts
1054

Hi,

Thanks for the report and the debug link - it looks like there is something like a widget somewhere which is still looking for the deleted user thanks to invalid cache data. As you noticed, it should sort itself out after a few minutes once the cache expires.

We will aim to fix the issue in an upcoming release.

x1
Samerton · about 1 year ago