zmcachapters.org/chapters-main
After the ijoomla installer patched from JS 3.2.0.2 to the latest 3.2.0.3 update, the front-end login of the site keeps displaying the following Error:
JUser: :_load: Unable to load user with ID: 7
Login seems to work for registered users, but this error is on the JS homepage.
Hi Jason,
I have installed jomsocial 3.2.0.3 and have noticed the problem at your site.
I need to see the problem at file level.
Can you provide us ftp info by editing your first post?
Thanks
hi jason,
You can try to looked at this topics
www.jomsocial.com/forum/installation/160...with-id-errors#81270
Warm Regards,
David
Hi Jason,
Thanks for the co-operation.
I have added the fix at your site at root/components/com_community/libraries/user.php
if ($isValid) {
// We need to create a new record for this specific user first.
$obj = new stdClass();
$obj->userid = $this->id;
$obj->points = $this->_points;
$obj->thumb = '';
$obj->avatar = '';
// Load default params
$obj->params = "notifyEmailSystem=" . $config->get('privacyemail') . "\n"
. "privacyProfileView=" . $config->get('privacyprofile') . "\n"
. "privacyPhotoView=" . $config->get('privacyphotos') . "\n"
. "privacyFriendsView=" . $config->get('privacyfriends') . "\n"
. "privacyGroupsView=" . $config->get('privacy_groups_list') . "\n"
. "privacyVideoView=" . $config->get('privacyvideos') . "\n"
. "notifyEmailMessage=" . $config->get('privacyemailpm') . "\n"
. "notifyEmailApps=" . $config->get('privacyapps') . "\n"
. "notifyWallComment=" . $config->get('privacywallcomment') . "\n";
//load default email privacy settings
//CFactory::load( 'libraries' , 'notificationtypes' );
$notificationtypes = new CNotificationTypes();
$obj->params .= $notificationtypes->convertToParamsString();
$db->insertObject('#__community_users', $obj);
if ($db->getErrorNum()) {
JError::raiseError(500, $db->stderr());
}
// Reload the object
$db->setQuery($query);
$obj = $db->loadObject();
$isNewUser = true;
}
if ($isValid) {
/* Init JUser */
$this->_juser = JFactory::getUser($this->id);
// We need to create a new record for this specific user first.
$obj = new stdClass();
$obj->userid = $this->id;
$obj->points = $this->_points;
$obj->thumb = '';
$obj->avatar = '';
// Load default params
$obj->params = "notifyEmailSystem=" . $config->get('privacyemail') . "\n"
. "privacyProfileView=" . $config->get('privacyprofile') . "\n"
. "privacyPhotoView=" . $config->get('privacyphotos') . "\n"
. "privacyFriendsView=" . $config->get('privacyfriends') . "\n"
. "privacyGroupsView=" . $config->get('privacy_groups_list') . "\n"
. "privacyVideoView=" . $config->get('privacyvideos') . "\n"
. "notifyEmailMessage=" . $config->get('privacyemailpm') . "\n"
. "notifyEmailApps=" . $config->get('privacyapps') . "\n"
. "notifyWallComment=" . $config->get('privacywallcomment') . "\n";
//load default email privacy settings
//CFactory::load( 'libraries' , 'notificationtypes' );
$notificationtypes = new CNotificationTypes();
$obj->params .= $notificationtypes->convertToParamsString();
$db->insertObject('#__community_users', $obj);
if ($db->getErrorNum()) {
JError::raiseError(500, $db->stderr());
}
// Reload the object
$db->setQuery($query);
$obj = $db->loadObject();
$isNewUser = true;
}else {
$this->_juser = JFactory::getUser(0);
}
Hi Jason,
I have overridden again. Please check.
Thanks
Hi jason,
We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.
Warm Regards,
David