Codeigniter default controller not working in PHP Version 5.6.15

By | March 25, 2016

Codeigniter controller will not work if we update your xampp version to v3.2.2. Or in other case if you upgrade the php version to 5.6+

in some cases, in the autoload.php in the config folder

$autoload[‘libraries’] = array(‘form_validation’,’session’,’database’);

if we remove database from the array codeigniter controller will work.

So solution to work this controller in the codeigniter is change dbdriver from mysql to mysqli

$db[‘default’][‘dbdriver’] = ‘mysqli’;

  • Micah Alamo

    Thank you so much, i have same problem like you, i was upgrade my php to php 5.6 and get blank page error.

    • mydoubts

      Welcome..