CException

La propiedad "CWebUser"."idUser" no se encuentra definida.

/www/webfam.com.ar/htdocs/yii/framework/web/auth/CWebUser.php(146)

134 
135     /**
136      * PHP magic method.
137      * This method is overriden so that persistent states can be accessed like properties.
138      * @param string $name property name
139      * @return mixed property value
140      */
141     public function __get($name)
142     {
143         if($this->hasState($name))
144             return $this->getState($name);
145         else
146             return parent::__get($name);
147     }
148 
149     /**
150      * PHP magic method.
151      * This method is overriden so that persistent states can be set like properties.
152      * @param string $name property name
153      * @param mixed $value property value
154      */
155     public function __set($name,$value)
156     {
157         if($this->hasState($name))
158             $this->setState($name,$value);

Stack Trace

#1
+
 /www/webfam.com.ar/htdocs/sitio_nuevo/protected/modules/frontend/controllers/UsuariosController.php(1520): CWebUser->__get("idUser")
1515 
1516         Yii::app()->user->setFlash('edicionOk', false);
1517         Yii::app()->user->setFlash('error', false);
1518         Yii::app()->user->setFlash('edad-error', false); 
1519 
1520         $model = Usuarios::model()->findByPk(Yii::app()->user->idUser);
1521         $modelatleta = Atletas::model()->findByAttributes(array('usuario_id' => Yii::app()->user->idUser));
1522         $galeria = FotosAtletas::model()->findAllByAttributes(array('atleta_id'=>$modelatleta->id));
1523 
1524         if(!empty($model->tutor_id))
1525         {
#9
+
 /www/webfam.com.ar/htdocs/sitio_nuevo/index.php(15): CApplication->run()
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 
15 Yii::createWebApplication($config)->run();
2024-03-19 00:26:52 Apache Yii Framework/1.1.14