Yii-User Activation Code

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(





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

        foreach ($userAttributes as $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.



and after


i think not getting profile. is the user-id have entry in profile table?

Thanks Mr.