Confirmation Url To Register (Users Modules)

Hi i use user and rights modules to register .When i register a new user an email with a confirmation link are sending , whem

n i push on link the user is registered but the page showing an error :


Fatal error: Call to a member function getAttributes() on a non-object in Fatal error: Call to a member function getAttributes() on a non-object in /membri/myapplication/protected/modules/rights/components/RWebUser.php on line 94

The line 94 is in this function:




 public function updateSession() {

        $user = Yii::app()->getModule('user')->user($this->id);

        $this->name = $user->username;

        $userAttributes = CMap::mergeArray(array(

                                                'email'=>$user->email,

                                                'username'=>$user->username,

                                                'create_at'=>$user->create_at,

                                                'lastvisit_at'=>$user->lastvisit_at,

                                           ),$user->profile->getAttributes());    //line  94 

        foreach ($userAttributes as $attrName=>$attrValue) {

            $this->setState($attrName,$attrValue);

        }

    }

}




Someone can help me ?

Probably


$this->id

is not set, check that the


$user

is not null.

Which version of the right extension you are using?

The version is :

1.3.0r147.

Sorry i dont understand , if the user click on the link inside the email , the user isnt yet register and the id at this moment not exist