If a user gets deleted from the system and if that particular user had a reference in any other component, then while loading that deleted user, Joomla throws a warning message like JUser: :_load: Unable to load user with ID: xxx
which sometimes is not required. And it somehow disturbs the UX.
Of course, there is a workaround using SQL queries, but by default, there should be a way to hide such messages.
Shows warning message: JUser: :_load: Unable to load user with ID: xxx
Labels |
Added:
?
?
|
The changed message is good.. However as suggested in this issue https://issues.joomla.org/tracker/joomla-cms/20689 we should only show this - say if Debug is on.. As while it could be useful to administrators showing this in the frontend might not be a good idea even if the message is changed. I think the use case here is that the JUser object is being used to load things like the Usernmame/Name instead of doing direct queries.
I think such messages should not be show, but logged instead. There also some errors in file-system classes doing similar stuff.
Showing the error for users only makes them think that the site is broken.
Comment #20689 (comment)
BTW: I personally still think that the alert message is a welcome thing in backend.
Many commercial templates have that issue at least (but not only) when one deletes the pre-configured users.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-12 10:38:16 |
Closed_By | ⇒ | joomdonation | |
Labels |
Added:
?
No Code Attached Yet
Removed: ? ? |
See discussion in #20689 , please.
And resulting "fix" for Joomla 4 which is only a change of the used language string. #24166
BTW: I personally still think that the alert message is a welcome thing in backend.