CDbException

Имя столбца должно быть строкой или массивом.

/home/wapawru/domains/wapaw.ru/public_html/framework/db/schema/CDbCommandBuilder.php(831)

819             }
820             if(count($values)===1)
821             {
822                 $entries=array();
823                 foreach($values[0] as $name=>$value)
824                     $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value);
825                 return implode(' AND ',$entries);
826             }
827 
828             return $this->createCompositeInCondition($table,$values,$prefix);
829         }
830         else
831             throw new CDbException(Yii::t('yii','Column name must be either a string or an array.'));
832     }
833 
834     /**
835      * Generates the expression for selecting rows with specified composite key values.
836      * @param CDbTableSchema $table the table schema
837      * @param array $values list of primary key values to be selected within
838      * @param string $prefix column prefix (ended with dot)
839      * @return string the expression for selection
840      */
841     protected function createCompositeInCondition($table,$values,$prefix)
842     {
843         $keyNames=array();

Stack Trace

#2
+
 /home/wapawru/domains/wapaw.ru/public_html/protected/controllers/PageController.php(140): CActiveRecord->findByPk(7)
135 
136     public function beforeAction($a)
137     {
138         parent::beforeAction($a);
139         $action = $a->getId();
140         $timeZone = Settings::model()->findByPk(7);
141         Yii::app()->setTimeZone($timeZone->value);
142 
143         if (Yii::app()->user->isGuest && !in_array($action, array('login', 'registration', 'password_recovery',
144                 'activation', 'lost_success', 'registration_success', 'Pay_CRM'))) {
145             $this->redirect(array('login'));
#9
+
 /home/wapawru/domains/wapaw.ru/public_html/index.php(44): CApplication->run()
39         require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'extended' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'MyCWebApplication.php');
40 
41         return self::createApplication('MyCWebApplication', $config);
42     }
43 }
44 Yii::createWebApplication($config)->run();
2024-03-29 18:12:46 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.19