[RFC] Hide 'JUser: :_load: Unable to load user with ID: xxx' warning message #39202
Replies: 4 comments
-
See discussion in #20689 , please. BTW: I personally still think that the alert message is a welcome thing in backend. |
Beta Was this translation helpful? Give feedback.
-
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. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29855. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Many commercial templates have that issue at least (but not only) when one deletes the pre-configured users. |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce the issue
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.Expected result
Of course, there is a workaround using SQL queries, but by default, there should be a way to hide such messages.
Actual result
Shows warning message:
JUser: :_load: Unable to load user with ID: xxx
Beta Was this translation helpful? Give feedback.
All reactions