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 140532e commit a6b43b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion application/core/LSYii_Controller.php
Expand Up @@ -115,7 +115,6 @@ 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
14 changes: 14 additions & 0 deletions index.php
Expand Up @@ -122,6 +122,7 @@
* -------------------------------------------------------------------
*/


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

Expand Down Expand Up @@ -155,6 +156,19 @@
define('APPPATH', BASEPATH . $application_folder . '/');
}

$aSettings= include(APPPATH.'config'.DIRECTORY_SEPARATOR.'config.php');
if ($aSettings['config']['debug']>0)
{
define('YII_DEBUG', true);
}
else
{
define('YII_DEBUG', false);
error_reporting(0);
}



/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
Expand Down

0 comments on commit a6b43b4

Please sign in to comment.