?
avatar shur
shur
24 Dec 2016

Steps to reproduce the issue

Joomla 3.7.0 fresh installation with sample data: Blog
Go to Content > Articles > Working on Your Site
and you see the warning:

JUser: :_load: Unable to load user with ID: 713

Actual result

unable to load user with id 713

Additional comments

Is it possible to leave the field "Modified by" empty in sample date sql files?

avatar shur shur - open - 24 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 24 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Dec 2016
avatar Bakual
Bakual - comment - 24 Dec 2016

The User ID is shown on purpose but there is already at least one PR around to deal with the message. Just can't find it at the moment.

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Dec 2016
avatar shur
shur - comment - 24 Dec 2016

@andrepereiradasilva thanks for PR

avatar shur shur - change - 24 Dec 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-12-24 18:18:38
Closed_By shur
avatar shur shur - close - 24 Dec 2016
avatar vijaykhollam
vijaykhollam - comment - 7 Jun 2018

Sometimes if any extension has not handled action "onUserAfterDelete".
like, delete/update user id from the created_by column from extensions database table, then the Joomla throws following warning message.
Message : "JUser: :_load: Unable to load user with ID: %s"
Ideally, the extension should handle this but message looks messy to end user ( frontend ) and may lose trust on site. Can we do something here?

I found this from joomla
language/en-GB/en-GB.lib_joomla.ini:
JLIB_USER_ERROR_UNABLE_TO_LOAD_USER="JUser: :_load: Unable to load user with ID: %s"

libraries/src/User/User.php
\JLog::add(\JText::sprintf('JLIB_USER_ERROR_UNABLE_TO_LOAD_USER', $id), \JLog::WARNING, 'jerror');

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Jun 2018

@vijaykhollam Can you please open a new Issue as Comments on closed Issues didn't get much Notice.

Sometimes if any extension has not handled action "onUserAfterDelete".

but i'm not sure if you write about Core.

avatar vijaykhollam
vijaykhollam - comment - 8 Jun 2018

Thanks, @franz-wohlkoenig
I have added the new issue. i.e #20689

Add a Comment

Login with GitHub to post a comment