Error

Object of class ActorComents could not be converted to string

/home/itip/web/bestactor.ru/public_html/framework/yiilite.php(9555)

9543             $this->_statement->bindParam($name,$value,$dataType);
9544         elseif($driverOptions===null)
9545             $this->_statement->bindParam($name,$value,$dataType,$length);
9546         else
9547             $this->_statement->bindParam($name,$value,$dataType,$length,$driverOptions);
9548         $this->_paramLog[$name]=&$value;
9549         return $this;
9550     }
9551     public function bindValue($name, $value, $dataType=null)
9552     {
9553         $this->prepare();
9554         if($dataType===null)
9555             $this->_statement->bindValue($name,$value,$this->_connection->getPdoType(gettype($value)));
9556         else
9557             $this->_statement->bindValue($name,$value,$dataType);
9558         $this->_paramLog[$name]=$value;
9559         return $this;
9560     }
9561     public function bindValues($values)
9562     {
9563         $this->prepare();
9564         foreach($values as $name=>$value)
9565         {
9566             $this->_statement->bindValue($name,$value,$this->_connection->getPdoType(gettype($value)));
9567             $this->_paramLog[$name]=$value;

Stack Trace

#5
+
 /home/itip/web/bestactor.ru/public_html/app/controllers/frontend/ActorController.php(246): CActiveRecord->findAll()
241 
242         $this->breadcrumbs[] = 'Обсуждение';
243         $cr = new CDbCriteria();
244         $cr->scopes = array('applyActors' => array($this->model), 'rootTheme', 'excludeDelete');
245 
246         $items = ActorComents::model()->findAll($cr);
247 
248         if(empty($items)) {
249             if(ActorComents::model()->createDefaultTopic($this->model)) {
250                 $this->refresh();
251             }
#10
+
 /home/itip/web/bestactor.ru/public_html/app/modules/rights/components/RController.php(36): CFilter->filter()
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
#18
+
 /home/itip/web/bestactor.ru/public_html/app/extensions/behaviors/WebApplicationEndBehavior.php(24): CApplication->run()
19         
20 21         $this->onModuleCreate = array($this, 'changeModulePaths');
22         $this->onModuleCreate(new CEvent ($this->owner));
23         
24         $this->owner->run();        
25     }
26     
27 28     public function onModuleCreate($event)
29     {
2024-03-29 09:34:53 Apache/2.4.57 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n Yii Framework/1.1.22