Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1. Accenture Survey
  2. The LimeSurvey database is being upgraded (2014-07-23 12:10:08) .
  3.  
  4. Please be patient...
  5.  
  6. CDbException
  7.  
  8. CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert explicit value for identity column in table 'lime_assessments' when IDENTITY_INSERT is set to OFF.. The SQL statement executed was: INSERT INTO [lime_assessments] ([id], [sid], [scope], [gid], [name], [minimum], [maximum], [message], [language]) VALUES (:id, :sid, :scope, :gid, :name, :minimum, :maximum, :message, :language)
  9.  
  10. C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\db\CDbCommand.php(354)
  11.  
  12. 342 return $n;
  13. 343 }
  14. 344 catch(Exception $e)
  15. 345 {
  16. 346 if($this->_connection->enableProfiling)
  17. 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().')','system.db.CDbCommand.execute');
  18. 348 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
  19. 349 $message = $e->getMessage();
  20. 350 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
  21. 351 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
  22. 352 if(YII_DEBUG)
  23. 353 $message .= '. The SQL statement executed was: '.$this->getText().$par;
  24. 354 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
  25. 355 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
  26. 356 }
  27. 357 }
  28. 358
  29. 359 /**
  30. 360 * Executes the SQL statement and returns query result.
  31. 361 * This method is for executing an SQL query that returns result set.
  32. 362 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
  33. 363 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
  34. 364 * them in this way can improve the performance. Note that if you pass parameters in this way,
  35. 365 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
  36. 366 * binding methods and the input parameters this way can improve the performance.
  37. Stack Trace
  38. #0
  39. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\db\CDbCommand.php(1178): CDbCommand->execute(array(":id" => "59", ":sid" => "85467", ":scope" => "T", ":gid" => "0", ...))
  40. 1173 }
  41. 1174 }
  42. 1175 $sql='INSERT INTO ' . $this->_connection->quoteTableName($table)
  43. 1176 . ' (' . implode(', ',$names) . ') VALUES ('
  44. 1177 . implode(', ', $placeholders) . ')';
  45. 1178 return $this->setText($sql)->execute($params);
  46. 1179 }
  47. 1180
  48. 1181 /**
  49. 1182 * Creates and executes an UPDATE SQL statement.
  50. 1183 * The method will properly escape the column names and bind the values to be updated.
  51. #1
  52. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\helpers\common_helper.php(6769): CDbCommand->insert("{{assessments}}", array("id" => "59", "sid" => "85467", "scope" => "T", "gid" => "0", ...))
  53. 6764 'minimum' => $assessment['minimum'],
  54. 6765 'maximum' => $assessment['maximum'],
  55. 6766 'message' => $assessment['message'],
  56. 6767 'language' => $lang
  57. 6768 );
  58. 6769 Yii::app()->db->createCommand()->insert('{{assessments}}', $data);
  59. 6770 }
  60. 6771 }
  61. 6772 reset($langs);
  62. 6773 }
  63. 6774
  64. #2
  65. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\helpers\update\updatedb_helper.php(1650): fixLanguageConsistency("85467", "cs ")
  66. 1645 {
  67. 1646 $surveyidquery = "SELECT sid,additional_languages FROM ".dbQuoteID('{{surveys}}');
  68. 1647 $surveyidresult = Yii::app()->db->createCommand($surveyidquery)->queryAll();
  69. 1648 foreach ( $surveyidresult as $sv )
  70. 1649 {
  71. 1650 fixLanguageConsistency($sv['sid'],$sv['additional_languages']);
  72. 1651 }
  73. 1652 }
  74. 1653
  75. 1654 function alterColumn($sTable, $sColumn, $sFieldType, $bAllowNull=true, $sDefault='NULL')
  76. 1655 {
  77. #3
  78. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\helpers\update\updatedb_helper.php(1061): fixLanguageConsistencyAllSurveys()
  79. 1056 {
  80. 1057 $oTransaction->rollback();
  81. 1058 echo '<br /><br />'.$clang->gT('An non-recoverable error happened during the update. Error details:')."<p>".htmlspecialchars($e->getMessage()).'</p><br />';
  82. 1059 return false;
  83. 1060 }
  84. 1061 fixLanguageConsistencyAllSurveys();
  85. 1062 echo '<br /><br />'.sprintf($clang->gT('Database update finished (%s)'),date('Y-m-d H:i:s')).'<br /><br />';
  86. 1063 return true;
  87. 1064 }
  88. 1065
  89. 1066 function upgradeSurveys156()
  90. #4
  91. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\helpers\update\update_helper.php(34): db_upgrade_all(155)
  92. 29 if(isset($subaction) && $subaction=="yes")
  93. 30 {
  94. 31 echo Yii::app()->getController()->_getAdminHeader();
  95. 32 echo "<div style='width:90%; padding:1% 5%;background-color:#eee;'>";
  96. 33 Yii::app()->loadHelper('update/updatedb');
  97. 34 $result=db_upgrade_all(intval($currentDBVersion));
  98. 35 if ($result)
  99. 36 {
  100. 37 $data = "<br />".sprintf($clang->gT("Database has been successfully upgraded to version %s"),$dbversionnumber);
  101. 38 $data .= "<br /><a href='".Yii::app()->getController()->createUrl("/admin")."'>".$clang->gT("Back to main menu")."</a></div>";
  102. 39 }
  103. #5
  104. – C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\controllers\admin\update.php(560): CheckForDBUpgrades("yes")
  105. 555 {
  106. 556 $clang = $this->getController()->lang;
  107. 557 Yii::app()->loadHelper("update/update");
  108. 558 if(isset($continue) && $continue=="yes")
  109. 559 {
  110. 560 $aViewUrls['output'] = CheckForDBUpgrades($continue);
  111. 561 updateCheck();
  112. 562 $aData['display']['header'] = false;
  113. 563 }
  114. 564 else
  115. 565 {
  116. #6
  117. unknown(0): update->db("yes")
  118. #7
  119. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\actions\CAction.php(107): ReflectionMethod->invokeArgs(update, array("yes"))
  120. #8
  121. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\core\Survey_Common_Action.php(100): CAction->runWithParamsInternal(update, ReflectionMethod, array("r" => "admin/update/sa/db/continue/yes", "sa" => "db", "continue" => "yes"))
  122. #9
  123. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\CController.php(309): Survey_Common_Action->runWithParams(array("r" => "admin/update/sa/db/continue/yes", "sa" => "db", "continue" => "yes"))
  124. #10
  125. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\CController.php(287): CController->runAction(update)
  126. #11
  127. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\CController.php(266): CController->runActionWithFilters(update, array())
  128. #12
  129. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\application\controllers\AdminController.php(170): CController->run("update")
  130. #13
  131. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\CWebApplication.php(276): AdminController->run("update")
  132. #14
  133. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\web\CWebApplication.php(135): CWebApplication->runController("admin/update/sa/db/continue/yes")
  134. #15
  135. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\framework\base\CApplication.php(162): CWebApplication->processRequest()
  136. #16
  137. + C:\Users\IEUser\Documents\xampp\htdocs\lsold\index.php(178): CApplication->run()
  138. 2014-07-23 12:12:38 Apache/2.4.9 (Win32) OpenSSL/0.9.8y PHP/5.4.27 Yii Framework/1.1.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement