? No Code Attached Yet
avatar praneettekdi
praneettekdi
30 Jun 2020

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

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
3.50

avatar praneettekdi praneettekdi - open - 30 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jun 2020
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Jun 2020
avatar ReLater
ReLater - comment - 30 Jun 2020

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.

avatar parthlawate
parthlawate - comment - 1 Jul 2020

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.

avatar Fedik
Fedik - comment - 1 Jul 2020

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)

avatar ReLater
ReLater - comment - 1 Jul 2020

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.

avatar joomdonation joomdonation - change - 12 Nov 2022
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: ? ?
avatar joomdonation joomdonation - close - 12 Nov 2022

Add a Comment

Login with GitHub to post a comment