MY problem is this…
After registration… users receive an email notification which contains the absoluteUrl with activekey… after i copy and paste the activation url in the browser, the browser displayed error
Fatal error: Call to a member function getAttributes() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/nms/protected/modules/user/components/WebUser.php on line 57
Here is my webuser.php code
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 57
foreach ($userAttributes as $attrName=>$attrValue) {
$this->setState($attrName,$attrValue);
}
}
anyone? Thanks in advance.
Ooops something is wrong. Because once i paste it and error displayed… i click refresh and it is become ok.? can somebody tell me what is the problem why it needs to refresh first before it displays correctly.