Reputation: 1276
I was working on codeigniter using ammps. But I migrated to xampp. When I did that the project loads only a blank page. no error messages nothing.
In application\database\config\database file, When I change $db['default']['dbdriver] = mysql
to $db['default']['dbdriver] = mysqli
loads the project but when login to the system shows many sql errors.
please help me to find a solution for this.
Upvotes: 1
Views: 522
Reputation: 1027
Try changing the environment constant in the index.php file
define('ENVIRONMENT', 'development');
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
I think by seeing the error you can check what's going wrong.
Upvotes: 0
Reputation: 738
update database.php file with below setting
$db['default']['db_debug'] = TRUE; // enable database error
and in config.php enable error logging
$config['log_threshold'] = 1;
check application/logs/'today's log file'
Upvotes: 0