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