-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve warning message if article author no longer exists #11786
Comments
How about
"The author of this article is no longer a user on this site"
But also please check if it is just the created user that generates this
error - perhaps the modified user does as well - I dont remember
|
Not really sure how to approach this. The message is coming from here: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/user/user.php#L869 Only thing I can think of is using
which I'm not sure is the best method. @mbabker - any thoughts on how to approach this? |
I would not be putting component specific stuff in JUser for starters. This is why arbitrarily logging things with the "jerror" category isn't a good mechanism of error handling. It'd be better if it threw an Exception but that apparently has B/C implications. So the only way around that would be to stop logging to the "jerror" category and force downstream uses of As vague as it is, the error message generated at the spot it is now is correct and even if it were throwing an Exception I wouldn't change it. Annoying because it's vague and generally not friendly, but this is a case of an error being rendered where it shouldn't be and it does actually state what the error condition is (can't load a user with the given ID) but it's not really pertinent to every site visitor. |
Ok thanks @mbabker . Closing |
Steps to reproduce the issue
Expected result
I would suggest displaying a more meaningful message, such as:
Or something along those lines. @brianteeman perhaps you could come up with a better warning message
Actual result
The text was updated successfully, but these errors were encountered: