Skip to content

Commit

Permalink
Fixed issue #6259: PDOException: SQLSTATE[42S02]: Base table or view …
Browse files Browse the repository at this point in the history
…not found: 1146 Table 'ls2.lime_surveys' doesn't exist

Dev Please note that developers have to manually set debug paramter to 1 or 2 in config.php now  to see all errors
  • Loading branch information
c-schmitz committed Jul 26, 2012
1 parent 4c809f2 commit cca7b1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion application/controllers/InstallerController.php
Expand Up @@ -294,7 +294,6 @@ private function stepDatabaseConfiguration()
if ($bDBExists == true) {
try {
$this->connection->createCommand()->select()->from('{{surveys}}')->queryAll();
$bTablesDoNotExist = false;
} catch(Exception $e) {
$bTablesDoNotExist = true;
}
Expand Down
1 change: 1 addition & 0 deletions application/core/LSYii_Controller.php
Expand Up @@ -115,6 +115,7 @@ protected function _init()
enforceSSLMode();// This really should be at the top but for it to utilise getGlobalSetting() it has to be here

if (Yii::app()->getConfig('debug')>0) {//For debug purposes - switch on in config.php
define('YII_DEBUG', true);
@ini_set("display_errors", 1);
error_reporting(E_ALL);
}
Expand Down
4 changes: 1 addition & 3 deletions index.php
Expand Up @@ -122,8 +122,6 @@
* -------------------------------------------------------------------
*/

define('YII_DEBUG', true);

// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));

Expand Down Expand Up @@ -171,4 +169,4 @@
Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();

/* End of file index.php */
/* Location: ./index.php */
/* Location: ./index.php */

0 comments on commit cca7b1f

Please sign in to comment.