PHP notice

Array to string conversion

/mnt/data/shnoulle/nginx/www/develop/framework/db/CDbCommand.php(337)

325         else
326             $par='';
327         Yii::trace('Executing SQL: '.$this->getText().$par,'system.db.CDbCommand');
328         try
329         {
330             if($this->_connection->enableProfiling)
331                 Yii::beginProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
332 
333             $this->prepare();
334             if($params===array())
335                 $this->_statement->execute();
336             else
337                 $this->_statement->execute($params);
338             $n=$this->_statement->rowCount();
339 
340             if($this->_connection->enableProfiling)
341                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
342 
343             return $n;
344         }
345         catch(Exception $e)
346         {
347             if($this->_connection->enableProfiling)
348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349 

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/develop/framework/db/CDbCommand.php(337): PDOStatement->execute(array(":anonymized" => "N", ":savetimings" => "N", ":template" => "fruity", ":datestamp" => "N", ...))
332 
333             $this->prepare();
334             if($params===array())
335                 $this->_statement->execute();
336             else
337                 $this->_statement->execute($params);
338             $n=$this->_statement->rowCount();
339 
340             if($this->_connection->enableProfiling)
341                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
342 
#1
+
 /mnt/data/shnoulle/nginx/www/develop/framework/db/CDbCommand.php(1278): CDbCommand->execute(array(":anonymized" => "N", ":savetimings" => "N", ":template" => "fruity", ":datestamp" => "N", ...))
1273             }
1274         }
1275         $sql='INSERT INTO ' . $this->_connection->quoteTableName($table)
1276             . ' (' . implode(', ',$names) . ') VALUES ('
1277             . implode(', ', $placeholders) . ')';
1278         return $this->setText($sql)->execute($params);
1279     }
1280 
1281     /**
1282      * Creates and executes an UPDATE SQL statement.
1283      * The method will properly escape the column names and bind the values to be updated.
#2
+
 /mnt/data/shnoulle/nginx/www/develop/application/helpers/update/updatedb_helper.php(2980): CDbCommand->insert("{{surveys_groupsettings}}", array("anonymized" => "N", "savetimings" => "N", "template" => "fruity", "datestamp" => "N", ...))
2975     // set db values to model
2976     $settings1->showqnumcode = ($globalSetting1 == 'choose') ? 'none' : $globalSetting1;
2977     $settings1->showgroupinfo = ($globalSetting2 == 'choose') ? 'both' : $globalSetting2;
2978     $settings1->shownoanswer = ($globalSetting3 == '2') ? '1' : $globalSetting3;
2979     $settings1->showxquestions = ($globalSetting4 == 'choose') ? 'show' : $globalSetting4;
2980     $oDB->createCommand()->insert("{{surveys_groupsettings}}", $settings1->attributes);
2981 
2982     // insert settings for default survey group
2983     $settings2 = new SurveysGroupsettings;
2984     $settings2->setToInherit();
2985     $settings2->gsid = 1;
#3
+
 /mnt/data/shnoulle/nginx/www/develop/application/helpers/update/updatedb_helper.php(2496): createSurveysGroupSettingsTable(DbConnection)
2491         /**
2492          * Add sureys_groupsettings table and update settings_global table 
2493          */
2494         if ($iOldDBVersion < 404) {
2495             $oTransaction = $oDB->beginTransaction();
2496             createSurveysGroupSettingsTable($oDB);
2497             $oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>404),"stg_name='DBVersion'");
2498             $oTransaction->commit();
2499         }
2500       
2501     } catch (Exception $e) {
#4
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(126): db_upgrade_all(403, true)
121             $sDBVersion = getGlobalSetting('DBVersion');
122         }
123         if ((int) $sDBVersion < Yii::app()->getConfig('dbversionnumber') && $action != 'databaseupdate') {
124             // Try a silent update first
125             Yii::app()->loadHelper('update/updatedb');
126             if (!db_upgrade_all(intval($sDBVersion), true)) {
127                 $this->redirect(array('/admin/databaseupdate/sa/db'));
128             }
129         }
130 
131 
2019-01-01 16:02:41 nginx/1.14.1 Yii Framework/1.1.20