JUser: :_load: Unable to load user with 'ID': 2 warning on a com_contact contact form on Joomla 3.2.1. Even more, I can´t send mails using this contact form.
That id, 2, is not a user I´m using. I guess that the plugin is getting that id from the contact id.
In plugin/user/jsn_users.php, line 141, it´s where the warning is generating. My bugfix was changing this:
//$id=JFactory::getApplication()->getUserState('com_users.edit.profile.id',JRequest::getVar('id',null));
with this:
$id = JFactory::getApplication()->getUserState('com_users.edit.profile.id');
$id = !empty($id) ? $id : (int) JFactory::getUser()->get('id');
That made the trick and now the warning don´t appear, and I´m able to send mails again, but I really would like to confirm that that one is the correct solution. Would you?
