CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field 'startdate' doesn't have a default value. The SQL statement executed was: INSERT INTO `limeliste_survey_685636` (`token`, `submitdate`, `lastpage`, `startlanguage`, `seed`, `685636X438X6916`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5)

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/db/CDbCommand.php(358)

346         {
347             if($this->_connection->enableProfiling)
348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349 
350             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
351             $message=$e->getMessage();
352             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
353                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
354 
355             if(YII_DEBUG)
356                 $message.='. The SQL statement executed was: '.$this->getText().$par;
357 
358             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
359                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
360         }
361     }
362 
363     /**
364      * Executes the SQL statement and returns query result.
365      * This method is for executing an SQL query that returns result set.
366      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
367      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
368      * them in this way can improve the performance. Note that if you pass parameters in this way,
369      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
370      * Please also note that all values are treated as strings in this case, if you need them to be handled as

Stack Trace

#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/dataentry.php(329): CActiveRecord->save()
324                 $beforeDataEntryImport->set('iSurveyID', $iSurveyId);
325                 $beforeDataEntryImport->set('oModel', $targetResponse);
326                 App()->getPluginManager()->dispatchEvent($beforeDataEntryImport);
327 
328                 $imported++;
329                 $targetResponse->save();
330                 $aSRIDConversions[$iOldID] = $targetResponse->id;
331                 unset($targetResponse);
332             }
333 
334 
#5
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(dataentry, ReflectionMethod, array("surveyid" => "685636", "sa" => "import", "iSurveyId" => "685636", "iSurveyID" => "685636", ...))
78             $oMethod = new ReflectionMethod($this, $sDefault);
79         }
80 
81         // We're all good to go, let's execute it
82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83         return parent::runWithParamsInternal($this, $oMethod, $params);
84     }
85 
86     /**
87      * Some functions have different parameters, which are just an alias of the
88      * usual parameters we're getting in the url. This function just populates
#9
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/AdminController.php(158): CController->run("dataentry")
153                     $this->redirect(array('/admin/authentication/sa/login'));
154                 }
155             }
156         }
157 
158         return parent::run($action);
159     }
160 
161     /**
162      * Routes all the actions to their respective places
163      *
2018-09-12 13:55:52 Apache/2.2.22 (Debian) Yii Framework/1.1.19