Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

3.2.0.3 update displays "JUser: :_load: Unable to load user with ID:"

10 years 11 months ago
  • Jason's Avatar
    Topic Author
  • Jason
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

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.

Attachments:
10 years 11 months ago
  • Jason's Avatar
    Topic Author
  • Jason
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

My hosting company is rolling the server back to 3.2.0.2 - but you can login, do the update and see the error..

10 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

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

10 years 11 months ago
  • Jason's Avatar
    Topic Author
  • Jason
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

FTP info added

10 years 11 months ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

hi jason,

You can try to looked at this topics

www.jomsocial.com/forum/installation/160...with-id-errors#81270

Warm Regards,

David

10 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

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;
                    }

replaced by
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);
                    }

Now it is working fine.
Please check.
Thanks

The following user(s) said Thank You: Jason
10 years 11 months ago
  • Jason's Avatar
    Topic Author
  • Jason
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

Can you please upload the new user.php one more time. I think it was overwritten by my server backup..

Thanks,
Jason

10 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Jason,
I have overridden again. Please check.
Thanks

10 years 11 months ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

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

10 years 11 months ago
  • Jason's Avatar
    Topic Author
  • Jason
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

Thankyou, that fixed the problem..

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW