[英]Blank page loading in xampp codeigniter project
I was working on codeigniter using ammps. 我正在使用ammps来处理codeigniter。 But I migrated to xampp. 但我迁移到了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. 在application \\ database \\ config \\ database文件中,当我将$db['default']['dbdriver] = mysql
更改$db['default']['dbdriver] = mysqli
加载项目但登录系统时显示很多sql错误。
please help me to find a solution for this. 请帮我找到解决方案。
update database.php file with below setting 使用以下设置更新database.php文件
$db['default']['db_debug'] = TRUE; // enable database error
and in config.php enable error logging 并在config.php中启用错误记录
$config['log_threshold'] = 1;
check application/logs/'today's log file' 检查应用程序/日志/'今天的日志文件'
Try changing the environment constant in the index.php file 尝试更改index.php文件中的环境常量
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. 我认为通过查看错误,您可以检查出现了什么问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.