CException

Не определено свойство "Profile.mail".

/var/www/hosts/framework/db/ar/CActiveRecord.php(145)

133      */
134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
145             return parent::__get($name);
146     }
147 
148     /**
149      * PHP setter magic method.
150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      */
154     public function __set($name,$value)
155     {
156         if($this->setAttribute($name,$value)===false)
157         {

Stack Trace

#1
+
 /var/www/hosts/lk.usoft.ru/protected/modules/user/models/Profile.php(144): CActiveRecord->__get()
139 
140         if (is_array($this->_bk_profile) && key_exists($name, $this->_bk_profile)) {
141             return $this->_bk_profile[$name];
142         }
143 
144         return parent::__get($name);
145     }
146 
147     public function __set($name, $value)
148     {
149 
#2
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/views/pages/templates/welcome_to_lk.php(25): Profile->__get()
20     if(!isset($session['utm_term_800'])) $session['utm_term_800'] = $utms['utm_term'];
21 }
22 if(!$email && isset($session['utm_term_800'])) $email = $session['utm_term_800'];
23 if(!preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i', $email)) $email = false;
24 
25 if(!$email) $email = Yii::app()->getModule('user')->user()->profile->mail;
26 ?>
27 <p>Благодарим за интерес к сервисам Личного кабинета «Ю-Софт».</p>
28 <div class="inquirer">
29     <div class="border-green" style="padding: 30px">
30         <div>
#6
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/controllers/PagesController.php(76): CController->renderPartial()
71     public function actionTemplated($view)
72     {
73         $page = $this->prepare();
74 
75         if ($view) {
76             $content = $this->renderPartial('templates/' . $view, false, true);
77             $this->render('//common/page', array('content' => $page['page_text'] . $content, 'page' => $page));
78         }
79 
80     }
81 
2024-11-02 02:34:17 nginx/1.18.0 Yii Framework/1.1.15