Exception

Could not add optional settings: exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'admin' for key 'users_name'. The SQL statement executed was: INSERT INTO `bbb_users` (`users_name`, `htmleditormode`, `templateeditormode`, `questionselectormode`, `dateformat`, `password`, `full_name`, `parent_id`, `email`, `created`, `lang`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, NOW(), :yp9). Bound with :yp0='admin', :yp1='default', :yp2='default', :yp3='default', :yp4=1, :yp5='5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8', :yp6='Administrator', :yp7=0, :yp8='your-email@example.net', :yp9='en'' in /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/db/CDbCommand.php:358
Stack trace:
#0 /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/db/ar/CActiveRecord.php(1077): CDbCommand->execute()
#1 /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/db/ar/CActiveRecord.php(806): CActiveRecord->insert(NULL)
#2 /home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/InstallerController.php(642): CActiveRecord->save()
#3 /home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/InstallerController.php(82): InstallerController->stepOptionalConfiguration()
#4 /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/web/CWebApplication.php(282): InstallerController->run('optional')
#5 /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/web/CWebApplication.php(141): CWebApplication->runController('installer/optio...')
#6 /home/sondages.pro/htdocs/limesurvey_GIT/205/framework/base/CApplication.php(180): CWebApplication->processRequest()
#7 /home/sondages.pro/htdocs/limesurvey_GIT/205/index.php(200): CApplication->run()
#8 {main}.

/home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/InstallerController.php(660)

648                         $permission->permission='superadmin';
649                         $permission->read_p=1;
650                         $permission->save();
651                         // Save  global settings
652                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'SessionName', 'stg_value' => self::_getRandomString()));
653                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'sitename', 'stg_value' => $sDefaultSiteName));
654                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminname', 'stg_value' => $sDefaultAdminRealName));
655                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminemail', 'stg_value' => $sDefaultAdminEmail));
656                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminbounce', 'stg_value' => $sDefaultAdminEmail));
657                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'defaultlang', 'stg_value' => $sDefaultSiteLanguage));
658                         // only continue if we're error free otherwise setup is broken.
659                     } catch (Exception $e) {
660                         throw new Exception(sprintf('Could not add optional settings: %s.', $e));
661                     }
662 
663                     Yii::app()->session['deletedirectories'] = true;
664 
665                     $aData['title'] = $clang->gT("Success!");
666                     $aData['descp'] = $clang->gT("LimeSurvey has been installed successfully.");
667                     $aData['classesForStep'] = array('off','off','off','off','off','off');
668                     $aData['progressValue'] = 100;
669                     $aData['user'] = $sDefaultAdminUserName;
670                     $aData['pwd'] = $sDefaultAdminPassword;
671 
672                     $this->render('/installer/success_view', $aData);

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/InstallerController.php(82): InstallerController->stepOptionalConfiguration()
77             case 'populatedb':
78                 $this->stepPopulateDb();
79                 break;
80 
81             case 'optional':
82                 $this->stepOptionalConfiguration();
83                 break;
84 
85             case 'index' :
86             default :
87                 $this->redirect(array('installer/welcome'));
#4
+
 /home/sondages.pro/htdocs/limesurvey_GIT/205/index.php(200): CApplication->run()
195         die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath));
196     }
197 }
198 
199 
200 Yii::createApplication('LSYii_Application', $config)->run();
201 
202 /* End of file index.php */
203 /* Location: ./index.php */
2014-04-11 13:10:52 Apache/2.2.22 (Debian) Yii Framework/1.1.14