1. jrodgar
  2. Bug Report
  3. Wednesday, January 22 2014, 01:23 PM
The problem starts with a

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? :)
admin Accepted Answer
Admin
Hi,
It's know issue, today(2 hours) i will release an update
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
We have released new version that fix this issue.
  1. more than a month ago
  2. Bug Report
  3. # 2
jrodgar Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.