CDbException

The table "mg_session" for active record class "CrugeSession" cannot be found in the database.

/home/myservic/public_html/websites/protected/extensions/eltSwitch/ELTSwitch.php(580)

568         if (isset($_POST[self::KEY_THEME]) && $this->isValidTheme($_POST[self::KEY_THEME]))
569             return $_POST[self::KEY_THEME];
570 
571         if (!empty($this->themeGetParam) && isset($_GET[$this->themeGetParam]) && $this->isValidTheme($_GET[$this->themeGetParam]))
572             return $_GET[$this->themeGetParam];
573 
574         if (($value = $this->getCookie(self::KEY_THEME)) !== '')
575             if ($this->isValidTheme($value))
576                 return $value;
577             else
578                 unset(Yii::app()->request->cookies[self::KEY_THEME]); //remove if not valid
579 
580             if (Yii::app()->user->hasState(self::KEY_THEME)) {
581             $value = Yii::app()->user->getState(self::KEY_THEME);
582             if ($this->isValidTheme($value))
583                 return $value;
584             else
585                 Yii::app()->user->setState(self::KEY_THEME, null); //remove if not valid
586         }
587 
588         //Default: the first item key
589         $allowed = $this->getThemeNames();
590         if (!empty($allowed)) {
591             reset($allowed);
592             return key($allowed);

Stack Trace

#1
+
 /home/myservic/public_html/websites/protected/modules/cruge/models/data/CrugeSession.php(179): CActiveRecord::model("CrugeSession")
174     /**
175      * Returns the static model of the specified AR class.
176      * @return CrugeSession the static model class
177      */
178     public static function model($className = __CLASS__) {
179         return parent::model($className);
180     }
181 
182     /**
183      * @return array validation rules for model attributes.
184      */
#2
+
 /home/myservic/public_html/websites/protected/modules/cruge/models/data/CrugeSession.php(83): CrugeSession::model()
78 
79     /**
80       @returns CrugeSession una instancia del modelo hallada por su IDSESSION
81      */
82     public static function loadModel($id) {
83         return self::model()->findByPk($id);
84     }
85 
86     /*
87       @returns CrugeSession instancia de la sesion mas reciente hallada para este usuario
88      */
#3
+
 /home/myservic/public_html/websites/protected/modules/cruge/components/CrugeFactory.php(43): CrugeSession::loadModel("0")
38     /** devuelve el identificador activo de sesion pero bajo interpretacion de una clase
39       que implemente a ICrugeSession
40 
41      */
42     public function getICrugeSession($idsession) {
43         return CrugeSession::loadModel($idsession);
44     }
45 
46     public function getICrugeSessionFindLastByUser($us_code) {
47         return CrugeSession::findLast($us_code);
48     }
2018-02-23 02:23:21 Apache Yii Framework/1.1.13