tenten
tenten

Reputation: 1276

Blank page loading in xampp codeigniter project

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

Answers (2)

5eeker
5eeker

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

AmmyTech
AmmyTech

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

Related Questions